The documentation shows a minimalist example of DataSource of
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
Is treeview data source restricted to having only the properties items: and text: ?
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: ?