modalMaxWidth Dynamical #237
Unanswered
dgironella
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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';
}`
Beta Was this translation helpful? Give feedback.
All reactions