Display labels on table grid
Hi, is there a way to display labels on a table grid with component stacks. The table label are auto hidden on layout grid. It would be best if we had a way to toggle the display of labels on a table grid.
8 Replies
the labels can be somewhat like the infolist textentry
i'm also interested in this
I can work on a PR if this feature will be supported
bump
The best approach would be to format the state of the field. There's no way for Filament to know how you want to present the data when it's used in a stack / grid.
This is what I tend to do:
define a macro (in a service provider):
and then:
That is true. Thank you for your response. The best and cleanest approach imho would be to have a displayLabels() method on the Stack::class as it's the one hiding the labels and display the labels like the infolists to keep same UI.
That way it can be an optional additional feature.
Old thread but here is another trick for whoever may be looking this up: the description still works as expected and accepts position ( above, below ) as argument:
TextColumn::make('my_field')->description('Label','above');
most plausible solution for now