Replies: 2 comments 4 replies
-
You can specify which column(s) to apply different classes to in setTdAttributes e.g.
|
Beta Was this translation helpful? Give feedback.
2 replies
-
And you can certainly center align them with standard tailwind classes! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I was unable to find an easy solution in the discussion search, so I want to share a snippet of code of how I made custom CSS classes in version 2, which is excellent for aligning columns.
This aligns both the header and the body columns.
Version 1 had a method you could add to a column
->addClass('text-right')
, but this does not exist in v2.I am using this on Tailwind and have found that sortable header columns do not align because they are flex buttons. Some CSS like this will fix it.
Beta Was this translation helpful? Give feedback.
All reactions