Name rowHeader based on cell data

Tags: #<Tag:0x00007efc6ad781c0>

Hello, new to Handson Table and I would like to dynamically name rowHeader via function that returns the data of corresponding row,column.
Here is my JSFiddle: http://jsfiddle.net/achapman77/0tL7sr9q/

Essentially I would like the rowHeader to be renamed with the corresponding ‘Nested Order’ value (see code line 95)

Requirements are that cols/rows remain both draggable and insertable.
Ultimately I would like to dynamically change the nestedOrder value if row is re-ordered/nested via drag/drop. Will T-up that for separate topic.

Thank you!

Hi,

To read nestedOrder value in rowHeaders callback you can use hot.getDataAtRowProp(index, 'nestedOrder') method. There is no build in feature to update nested order, it’s up to you how you can handle it.

Kind Regards
Wojciech