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

Can I use object array to render to html table? #30

Closed
Arjuna-Bandara opened this issue Nov 7, 2018 · 1 comment
Closed

Can I use object array to render to html table? #30

Arjuna-Bandara opened this issue Nov 7, 2018 · 1 comment

Comments

@Arjuna-Bandara
Copy link

Arjuna-Bandara commented Nov 7, 2018

Hi,
I am having a problem when using with a multidimensional array object. Is it possible to use this js library with Json object as below.

[ {"id":"31","Mesial":{"disorder":"","other":""},"Facial":{"disorder":"DC-HP","other":""},"Distal":{"disorder":"","other":""},"Lingual":{"disorder":"","other":""},"Occlusal":{"disorder":"","other":""}} ,{"id":"37","Mesial":{"disorder":"","other":""},"Facial":{"disorder":"RE-AR","other":""},"Distal":{"disorder":"","other":""},"Lingual":{"disorder":"","other":""},"Occlusal":{"disorder":"","other":""}} ]

@eisenbraun
Copy link
Owner

Columns only works with arrays of single-dimensional objects. Since your JSON data contains objects inside of objects it will not work.

Since this version of plugin is no longer maintained, my only recommendation is to alter or flatten data to meet the requirement.

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