Skip to content
This repository has been archived by the owner on Sep 25, 2019. It is now read-only.

Docs #4

Closed
grishaandrianov opened this issue Jan 13, 2017 · 2 comments
Closed

Docs #4

grishaandrianov opened this issue Jan 13, 2017 · 2 comments

Comments

@grishaandrianov
Copy link

It is not obvious how to use this plugin. Can you please make documentation more detailed? How to make items children? How to create tree-levels?

@grishaandrianov
Copy link
Author

grishaandrianov commented Jan 13, 2017

For example something like this:
JSON that datatable receives should contain property "children" in order to create children elements

    "data": [
        {
            "name": "Tiger Nixon",
            "position": "System Architect",
            "office": "Edinburgh",
            "extn": "5421",
            "start": "2011\/04\/25",
            "salary": "$320,800",
            "children": [
                {
                    "name": "Hermione Butler",
                    "position": "Regional Director",
                    "office": "London",
                    "extn": "1016",
                    "start": "2011\/03\/21",
                    "salary": "$356,250"
                },
                {
                    "name": "Lael Greer",
                    "position": "Systems Administrator",
                    "office": "London",
                    "extn": "6733",
                    "start": "2009\/02\/27",
                    "salary": "$103,500",
                    "children": [
                        {
                            "name": "Jonas Alexander",
                            "position": "Developer",
                            "office": "San Francisco",
                            "extn": "8196",
                            "start": "2010\/07\/14",
                            "salary": "$86,500"
                        }
                    ]
                }
            ]
        }
    ]
}

@homfen
Copy link
Owner

homfen commented Feb 13, 2017

Yes, the row data must contain the "children" property, I have added it to the README.

@homfen homfen closed this as completed Feb 13, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants