F
Filament16mo ago
namrata

Split with label

Is there anyway to show label of the colum while using split
9 Replies
paanblogger
paanblogger16mo ago
Also looking for this solution
charleswilfriedk
charleswilfriedk16mo ago
+1 Or any other way to change the table columns width
Óscar
Óscar16mo ago
+1
Somebody
Somebody16mo ago
interested in this too
epertinez
epertinez16mo ago
+1 In my case... I need to use Split or Grid because i want a collapsible Panel or View under each row. Alternatively: Is there a way to force column labels with Split or Grid, even if custom made?
awcodes
awcodes16mo ago
With split and grid it is no longer an html table so if you want labels you will have to format the state to return a label, ie ->formatStateUsing(fn ($state) => 'Number: ' . $state) Ideally this should return a definition list for accessibility but that’s the general idea.
epertinez
epertinez16mo ago
Yet, if you want titles, they come BEFORE any formating of the state, don't they?
charleswilfriedk
charleswilfriedk15mo ago
That will add the label on each line! I don't think that's what we want. Not for me at least.
awcodes
awcodes15mo ago
well, it's no longer a table, so it can't have headers. 🙂

Did you find this page helpful?