Holt59 / datatable

Javascript Plugin for data tables creation
http://holt59.github.io/datatable/
MIT License
107 stars 42 forks source link

how can i implement for rowspan ? #48

Open irfan-techteer opened 1 year ago

irfan-techteer commented 1 year ago

when i try to integrate with table whose multiple row are span , it will show me this error Uncaught TypeError: Cannot read properties of undefined (reading 'innerHTML')

Error raise in this block :


            for (s = 0; s < o.length; ++s)
                this.data[s].push(d(o[s].cells[h].innerHTML.trim())) // error raise here 
Holt59 commented 1 year ago

The library does not handle multiple spanning rows. Maybe if you show the kind of table you're working with I could give you an alternative, but if you need to display tables with some kind of multi-level index, then this will not be possible (and this would require a complete rewrite of the library to handle it).

irfan-techteer commented 1 year ago

Thank you @Holt59 for your response , I have manage that problem by different way but can please give me an quick idea how i manage nested tables ?

Holt59 commented 1 year ago

Thank you @Holt59 for your response , I have manage that problem by different way but can please give me an quick idea how i manage nested tables ?

What do you mean by nested tables? You can include a table in a cell using lineFormat but having a table in a table is probably not a good idea.