Skip to content

Column Header customization? #3663

Closed Answered by Ben-CA
Ben-CA asked this question in Q&A
Discussion options

You must be logged in to vote

Discovered I can customize like this:

  {
    key: 'priority',
    name: 'Priority',
    renderHeaderCell: (props) => (<Tooltip title="Tooltip about priority" arrow><span>{props.column.name}</span></Tooltip>)
  },

This allows for adding a tooltip (using MUI Tooltip). You can also include the value like this:

  {
    key: 'priority',
    name: 'Priority',
    headerTooltip: 'Text goes here',
    renderHeaderCell: (props) => (<Tooltip title={props.column.headerTooltip} arrow><span>{props.column.name}</span></Tooltip>)
  },

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Ben-CA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant