conditionally disable <x-filament::icon-button>

I've tried doing something like <x-filament::icon-button disabled="{{ $myTest === true ? 'disabled' : ''}}" /> and <x-filament::icon-button disabled="{{ $myTest === true ? 'true' : ''}}" /> can't seem to figure out the right combination.
Solution:
<x-filament::icon-button :disabled="$myTest" />
<x-filament::icon-button :disabled="$myTest" />
?...
Jump to solution
2 Replies
Solution
ChesterS
ChesterS13mo ago
<x-filament::icon-button :disabled="$myTest" />
<x-filament::icon-button :disabled="$myTest" />
?
Jon Mason
Jon MasonOP13mo ago
that was it, thank you!
Want results from more Discord servers?
Add your server