w5m
How to get all options from table filter in table header action?
I've finally managed to get hold of the list of Select options. I had to modify the creation of the
project_id
Select component slightly by adding ->key('project')
. Then, in the header action, the following code gave me an array of the options...
10 replies
How to get all options from table filter in table header action?
I'm trying to get the full list of options from the
project_id
Select component (not the currently selected option, which ->getState()
returns), so that I can decide which id from the list should be used to build a URL to navigate to. I'm guessing I need to use the ->getOptions()
method, but I'm not sure how I get access to the Select
component.10 replies
Custom "Save" button to create or save a form
A big thank you for your suggestion @Leandro Ferreira - that's a nice way of doing it and I now have a better understanding of which methods the
'save'
and 'create'
strings were referring to. I slightly adapted the custom method you suggested to fit with my implementation (as I have an additional class named BaseCreateRecord
which descends from CreateRecord
and introduces some common functionality to child classes)...6 replies
How to show brand logo when sidebar is collapsed on desktop?
Approach proposed here: https://github.com/filamentphp/filament/pull/13718
16 replies