core icon indicating copy to clipboard operation
core copied to clipboard

Adding second header row that has some controls in it for each column?

Open nowherenearithaca opened this issue 7 years ago • 1 comments

Curious how you would you go about adding a second header row that has some widgets in it for each column?

Similar, have the first column consist of a small set of widgets for the row... essentially replacing the checkbox that can be there now.

Will take a closer look at things.

nowherenearithaca avatar Aug 15 '18 06:08 nowherenearithaca

For a second header row, you could replace the HeaderSubgrid data model with a data model of your own that maintains two row rather than one; or add an additional single-row subgrid.

The 2nd row's cells would have a custom cell renderer and cell editor to respectively display and interact with the widgets.

For first column question: You can't simply override the checkbox; but you could hide the checkbox (or the whole column) and add your own first (or 2nd) column, with it's own cell renderer and cell editor for the widgets which could set row properties.

joneit avatar Aug 18 '18 20:08 joneit