Advanced User Interface Controls and Components
Loads data from local or remote data source into TreeView.
Param | Type | Details |
---|---|---|
name | String | The value of name attribute of the TreeView directive |
data | Array | An array of item objects from local or remote data source |
parent (optional) | Object | The item which will represent the parent of the newly added items from the data source |
fields (optional) | Object | An object that matches the names of data fields from specified data source to the ones in TreeView |
flat (optional) | Boolean | Determines whether the data source is a tree hierarchy or a flat list |
This method does not return a value.
This method is part of IntegralUITreeViewService.
You can use this method to load data on demand, updating the whole TreeView in the process or the content of some specified item.
Supported in: v1.0.
Learn how to bind an arbitrary data source to the TreeView for AngularJS. Bind data with custom names from local or remote data source to the TreeView directive.
An example showing how to populate the TreeView in AngularJS with data on demand using remote data source. Dynamically change the content of TreeView with custom data.