Skip to content

modalMaxWidth Dynamical #234

Description

@dgironella

Hi,

modalMaxWidth function is static , how can I change modalMaxWidth to return a different size depending component variable value.

`
public $tipus = 0;
public function render()
{
return view('livewire.globus-part');
}

public static function modalMaxWidth(): string
{
if $this->tipus == 3) return '7xl';
else return '4xl';
}`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions