Using filament controls in a custom livewire component - is this possible?
I have a custom livewire compoment that is used in my table that accomodates a special-case UX. I would like to include a filament SELECT (forms) in that livewire component to maintain a consistent expeirence with the rest of the table. Is this possible?
I can find examples and documentation of the reverse (using a custom livewire component in a table) but am having trouble finding samples of my use case. Is it possible to reuse this and other filament controls in a stand-alone manner?
I can find examples and documentation of the reverse (using a custom livewire component in a table) but am having trouble finding samples of my use case. Is it possible to reuse this and other filament controls in a stand-alone manner?
5 Replies
You could just use the filament blade component inside your column view. https://filamentphp.com/docs/3.x/support/blade-components/select
that might be an easier solution - I want to be able to add a value to teh select list on the fly (createOptionsUsing()
Should still be able to do it, since forms can be put into any livewire component. The state might get a little weird though.
https://filamentphp.com/docs/3.x/forms/adding-a-form-to-a-livewire-component
Could possible just extend the Select column too as a custom column. That way you get all the functionality with the ability to change the view.
thank you - i'll give that a try. Much appreciated!