Skip to content

v2.2.0

Choose a tag to compare

@xuanpablo xuanpablo released this 08 Jun 23:25
· 3 commits to main since this release

Added

  • Action commands. CommandItem::action($label, $event, $data) (and ->dispatch() on any item) create a command that fires a browser CustomEvent instead of navigating — the payload arrives as event.detail. Listen via window.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