15 Replies
Yes. Search the docs for "Dependant fields"
Okay, you are close.
Thanks but the thing is that this does not accept reactive
Make the "screen" field
->reactive
And use $get
. $record
does not update
It gives me this error Method Filament\Tables\Columns\TextColumn::reactive does not exist.
This is because is displaying information in a table
and is not a form, I think
Oh sorry. I didn't see that this is about tables.
Don't worry
Then: It doesn't make sense to hide columns based on the record. It would break the table layout if rows had different number of columns
Oh I understand, thank you so much, I was trying something with a custom accessor and that column comes from the accessor but then I need to search another way to do this
How it hiding columns related to an accessor?
Maybe explain your original problem?
Do you want to show a blank column instead, if the record has a certain state?
Ok the thing is that I have this custom accessor, this will show me a number that must be showed if the value of this column TextColumn::make('screen')
->label('Tipo de pantalla')
->sortable(), is equal to "something" if not I want to hide this TextColumn::make('number_dealer_profile')
->label('Perfil')
Well That was my idea
Use
->formatStateUsing
thenThank you
And return an empty string if you want to hide the content