v2.2.0
Added
- Action commands.
CommandItem::action($label, $event, $data)(and->dispatch()on any item) create a command that fires a browserCustomEventinstead of navigating — the payload arrives asevent.detail. Listen viawindow.addEventListener(...)or a Livewire#[On(...)]handler. Useful for toggling theme, logging out, opening modals, or any custom action.
CommandItem::action('Toggle dark mode', 'toggle-theme', ['mode' => 'dark']);Upgrade: composer require xuanpablo/filament-palette:^2.2