DropDownTreeComponent
Represents the Kendo UI DropDownTree component for Angular.
Selector
kendo-dropdowntree
Export Name
Accessible in templates as #kendoDropDownTreeInstance="kendoDropDownTree"
Inputs
Name | Type | Default | Description |
---|---|---|---|
adaptiveMode |
|
Enables or disables the adaptive mode. By default the adaptive rendering is disabled. | |
clearButton |
|
If set to | |
data |
|
Sets the data of the DropDownTree.
| |
dataItem |
|
Keeps the current | |
disabled |
|
Sets the disabled state of the component. To learn how to disable the component in reactive forms, refer to the article on Forms Support. | |
fetchChildren |
|
A function which provides the child nodes for a given parent node. | |
fillMode |
|
Sets the fillMode of the component. The possible values are:
| |
filterable |
|
Renders the built-in input element for filtering the DropDownTree.
If set to | |
hasChildren |
|
A function which determines if a specific node has child nodes. | |
isNodeExpanded |
|
A function that is executed for each data item and determines if a specific node is expanded. | |
isNodeVisible |
|
A callback which determines whether a tree node should be rendered as hidden. The utility .k-hidden class is used to hide the nodes. Useful for custom filtering implementations. | |
itemDisabled |
|
A function that is executed for each data item and determines if a specific item is disabled. | |
listHeight |
|
Sets the height of the options list in the popup. By default,
| |
loading |
|
Sets and gets the loading state of the DropDownTree. | |
loadOnDemand |
|
|
Indicates whether the child nodes will be fetched on node expand or will be initially prefetched. |
placeholder |
|
The hint which is displayed when the component is empty. | |
popupSettings |
|
Configures the popup of the DropDownTree. The available options are:
| |
readonly |
|
|
Sets the read-only state of the component. |
rounded |
|
Sets the border radius of the component. The possible values are:
| |
size |
|
Sets the size of the component. The possible values are:
| |
subtitle |
|
Sets the subtitle of the ActionSheet that is rendered instead of the Popup when using small screen devices.
By default the ActionSheet subtitle uses the text provided for the | |
tabindex |
|
Specifies the | |
textField |
|
The fields of the data item that provide the text content of the nodes inside the
DropDownTree (see example). If the
| |
title |
|
Sets the title of the ActionSheet that is rendered instead of the Popup when using small screen devices. By default the ActionSheet title uses the text provided for the label of the AutoComplete. | |
value |
|
Sets the value of the DropDownTree.
It can either be of the primitive (string, numbers) or of the complex (objects) type.
To define the type, use the | |
valueDepth |
|
Sets the level in the data set where the value can be found when | |
valueField |
|
The fields of the data item that provide the value of the nodes inside the
DropDownTree (see example). If the
| |
valuePrimitive |
|
Specifies the type of the selected value
(more information and example).
If set to |
Fields
Name | Type | Default | Description |
---|---|---|---|
isOpen |
|
Returns the current open state. Returns |
Events
Name | Type | Description |
---|---|---|
close |
|
Fires each time the popup is about to close (see example). This event is preventable. If you cancel it, the popup will remain open. |
closed |
|
Fires after the popup has been closed. |
filterChange |
|
Fires when the value of the built-in filter input element changes. |
nodeCollapse |
|
Fires when the user collapses a node in the popup TreeView. |
nodeExpand |
|
Fires when the user expands a node in the popup TreeView. |
blur |
|
Fires each time the DropDownTree gets blurred. |
focus |
|
Fires each time the user focuses the DropDownTree. |
open |
|
Fires each time the popup is about to open (see example). This event is preventable. If you cancel it, the popup will remain closed. |
opened |
|
Fires after the popup has been opened. |
valueChange |
|
Fires each time the value is changed (see example). |
Methods
blur |
---|
Blurs the DropDownTree. |
focus |
---|
Focuses the DropDownTree. |
focusItemAt | ||||||
---|---|---|---|---|---|---|
Focuses a specific item of the DropDownTree based on a provided index in the format of | ||||||
|
reset |
---|
Resets the value of the DropDownTree.
If you use the |
toggle | ||||||
---|---|---|---|---|---|---|
Toggles the visibility of the popup or actionSheet.
(see example).
If you use the | ||||||
|