DataSource, any other properties ?

1 posts, 0 answers
  1. Richard
    Richard avatar
    148 posts
    Member since:
    Feb 2012

    Posted 31 Mar 2012 Link to this post

    The documentation shows a minimalist example of DataSource of
    dataSource: [
                {
                    text: "Item 1",
                    items: [
                        { text: "Item 1.1" },
                        { text: "Item 1.2" }
                    ]
                },
                { text: "Item 2" }
            ]

    The source code for treeview template suggests there might be other properties, such as expanded, allowed in the dataSource.

    I tried this which did not seem to work
    text: "Item 1", expanded: true,
                    items: [
                        { text: "Item 1.1" },
                        { text: "Item 1.2" }

    Is treeview data source restricted to having only the properties items: and text: ?
Back to Top