Skip to content
Discussion options

You must be logged in to vote

ok appears a column has a meta propery typed as unknown.

So can put an align in there then cast it when making the td

 {
    header: 'header',
    accessorFn: x => x.number
    meta: {
      align: 'right'
    },
  },

<td key={cell.id} align={(cell.column.columnDef.meta as any)?.align}>

Replies: 5 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@Kolobamanacas
Comment options

Answer selected by bzbetty
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@tobyCurtis
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
7 participants