Table Column Labels

I have a table and one of the columns is an icon and so I don't want a label to show. I do this by setting ->label('') because there doesn't seem to be a ->hiddenLabel() on table columns. However, when I set ->toggleable() on the column it appears in the list with no label - like the below. Any ideas how to get around this?
No description
3 Replies
Matthew
Matthew2w ago
Assuming nothing off the shelf already there...I would look at: 1) Can I determine whether a column is currently toggled on or off...and is so then use a closure to determine the label (being blank when I don't want it) 2) Failing that, I'd create a TW class to hide the label on the table, and attach it to the fi-ta-header-cell-label component
Adam Holmes
Adam Holmes2w ago
Yeah I couldn't find anything off the shelf I think option 2 might be the better option of the 2, I'll give it a go. Cheers
brownbear1773
brownbear17737d ago
This will do it for you ... ->extraHeaderAttributes(['style' => 'visibility: hidden;', 'class' => 'no-title'])
Want results from more Discord servers?
Add your server