from the previous question Custom UI for top left conner of table I can put the checkbox in the top left corner successfully. Thanks to @adrian.szymanski
The next problem I try to do is check all checkboxes inside rowHeaders if the checkbox inside the top left corner is checked.
My plan is I’ll get all checkboxes inside RowHeaders and set attribute to it as checked. but the problem is how I can get all TH elements inside rowHeaders in every rows, ideally I’d get only for row that is visible.
I tried to use getRowHeader method but it return only a string, not a DOM element so I can’t use it to retrieve the input checkbox.
the getCell seems can return element, but unfortunately, it unable to return rowHeader since it has check that col must be greater than or equal to 0, which it is only data cell.
So my question is how we can get TH element inside RowHeader?