Skip to content

[v8] How to add custom class to a cell in the column definition #5319

Answered by TonyVeigel
danicruz0415 asked this question in Q&A
Discussion options

You must be logged in to vote

I don't use typescript thankgoodness :), I know the "official" way is to do cell.column.columnDef.meta.myCustomClassList, not sure if that fixes typescript issue or not because I've never used it.

{
accessorKey: 'firstName',
cell: info => info.getValue(),
footer: info => info.column.id,
meta: {myCustomClassList ["d-flex"] }
}]

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@danicruz0415
Comment options

@TonyVeigel
Comment options

Answer selected by danicruz0415
@danicruz0415
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants