Table TextInput Conditionally Disabled

Hi I have a table in a Relation Manager, it has a textInputColumn (price) and textColumn (status). I would like the textInputColoum to be disabled based on the state of the textColumn (status). i.e. Status = validated, textInputColumn = Disabled. I couldn't see anything in the Docs re this, thanks in advance.
2 Replies
awcodes
awcodes12mo ago
TextInputColumn::make() ->disabled(fn($record) => $record->status === ‘whatever’)
MazeEzam
MazeEzamOP12mo ago
Awesome, thank you

Did you find this page helpful?