Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can i implement for rowspan ? #48

Open
irfan-techteer opened this issue Mar 2, 2023 · 3 comments
Open

how can i implement for rowspan ? #48

irfan-techteer opened this issue Mar 2, 2023 · 3 comments

Comments

@irfan-techteer
Copy link

irfan-techteer commented Mar 2, 2023

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
Copy link
Owner

Holt59 commented Mar 3, 2023

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
Copy link
Author

irfan-techteer commented Mar 6, 2023

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
Copy link
Owner

Holt59 commented Mar 6, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants