Custom column header / context menu #83
-
Is it possible to add custom column headers? or even a context menu? I see that to add a specific component for each column, that will render on each cell, but not for the column header, as I would like to add a different behavior/context menu for some columns... The My idea is to pass a component in the title property... not sure if this is the best approach tho... |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey @danisal ! const columns = [
{ title: <MyComponent /> }
] Now regarding the context menu, it is true that you do not have access to the selected area. Please create a feature request detailing your use case precisely to help scope the feature and prioritize the roadmap! |
Beta Was this translation helpful? Give feedback.
Hey @danisal !
Just pass your header component to the title prop of the column:
Now regarding the context menu, it is true that you do not have access to the selected area. Please create a feature request detailing your use case precisely to help scope the feature and prioritize the roadmap!