F
Filamentβ€’6mo ago
Sector

Label for stacks

Hey Guys! There is any way to give the Stacks some kind of label? Because if I am using Stack::make method, it works perfectly, but a little bit confusing to what's inside. Thanks for the answers!
6 Replies
Sector
Sectorβ€’6mo ago
Eg.:
No description
Sector
Sectorβ€’6mo ago
Anyone? 😒
awcodes
awcodesβ€’6mo ago
TextColumn::make('blah')
->formatStateUsing(function ($state) {
return 'Blah: ' . $state;
})
TextColumn::make('blah')
->formatStateUsing(function ($state) {
return 'Blah: ' . $state;
})
there's no way for Filament to know where to place the label when using a Stack so you have to do that yourself if a label is needed.
Sector
Sectorβ€’6mo ago
Oh, thanks. I got it. But sadly it's not working in case of the icon columns etc. But thanks for your answer! πŸ™‚
Sector
Sectorβ€’6mo ago
And there is a way to add some kind of text to the icon columns inside a stacks?
No description
Sector
Sectorβ€’6mo ago
or anyone has any idea how should I indicate what the icon columns stand for?