Replies: 1 comment 1 reply
-
Try: Column::make('Amount', 'amount')->addClass('text-right'), |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a "not sortable" amount column and it best viewed with a right alignment. I have succeeded in right aligning the specific cell contents. Any tips on how I can right align the header also?
I've looked at the code in heading.blade.php. Would be awesome if there were also some hooks into this for each column and row similar like "setTableRowClass". But on columns that are not sortable the $column prop is not passed through.
Any ideas on how I can solve this elegantly? Would have been awesome if one could drive column (and header) alignment straight from the columns definition and apply it to the row cell and the header cell. See below for some example variants.
Would love some feedback!
Thanks
Beta Was this translation helpful? Give feedback.
All reactions