jspreadsheet / ce

Jspreadsheet is a lightweight vanilla javascript plugin to create amazing web-based interactive tables and spreadsheets compatible with other spreadsheet software.
https://bossanova.uk/jspreadsheet/v4
MIT License
6.66k stars 818 forks source link

header sorting is not work in HTML Column. #1693

Open y-kawakami-ccs opened 4 weeks ago

y-kawakami-ccs commented 4 weeks ago

e.g.

columns: [
 { title: `<div>ONE</div><div>TWO</div>` }
],
stripHTML: false,

When doubleclick on header, e.target is div element. it has not "data-x" attribute.

I think that should be get td element in getElement or new method.

I am concerned about the overlap between custom HTML headers and sort markers, but I think this should be handled by the user. Currently, there is still overlap in very small columns.

I am also concerned that HTML cannot be used in Nested Header.

-- sorry, i'm not good at english.