FieldsSettings
23 Sep 20251 minute to read
Configures the fields to bind to the properties of node in the TreeView component.
Properties
child string|FieldsSettingsModel
Binds the field settings for child nodes or mapping field for nested nodes objects that contain array of JSON objects.
dataSource DataManager| { : }[]
Specifies the array of JavaScript objects or instance of DataManager to populate the nodes.
Defaults to []
expanded string
Specifies the mapping field for expand state of the TreeView node.
hasChildren string
Specifies the mapping field for hasChildren to check whether a node has child nodes or not.
htmlAttributes string
Specifies the mapping field for htmlAttributes to be added to the TreeView node.
iconCss string
Specifies the mapping field for icon class of each TreeView node that will be added before the text.
id string
Specifies the ID field mapped in dataSource.
imageUrl string
Specifies the mapping field for image URL of each TreeView node where image will be added before the text.
isChecked string
Specifies the field for checked state of the TreeView node.
navigateUrl string
Specifies the mapping field for navigateUrl to be added as hyper-link of the TreeView node.
parentID string
Specifies the parent ID field mapped in dataSource.
query Query
Defines the external Query
that will execute along with data processing.
Defaults to null
selectable string
Specifies whether the node can be selected by users or not
When set to false, the user interaction is prevented for the corresponding node.
selected string
Specifies the mapping field for selected state of the TreeView node.
tableName string
Specifies the table name used to fetch data from a specific table in the server.
text string
Specifies the mapping field for text displayed as TreeView node’s display text.
tooltip string
Specifies the mapping field for tooltip that will be displayed as hovering text of the TreeView node.