jmrufo
Several recordClasses
Hi guys.
I would like to apply several css styles according to the added rules but I can't find a way to be able to do more than one check with recordClasses.
If I create this rule it works perfectly:
->recordClasses(
fn (Programming $record) => $record->canceled == 1 ? 'my-line-bg-canceled' : null
)
But I would also like to add this other one that checks another property:
->recordClasses(
fn (Programming $record) => $record->incident == 1 ? 'my-line-bg-incident' : null
);
Can someone tell me if this is possible in filament.
Thanks to all
6 replies
Autofill TextInput based on Select value in FilamentPhp
I am developing a project in FilamentPhp and I have encountered the following problem that I do not know how to solve.
I would like to be able to auto-complete a TextInput dynamically depending on the value I select in a Select, that is, the logic would be the following:
I select an option from the Select
I make a query with the selected option from the Select to retrieve all the information from the model
I auto-fill the TextInput with the retrieved information.
Can anyone help me with this?
Regards
5 replies