New to Kendo UI for Angular? Start a free 30-day trial

ExpandableDirective

A directive which controls the expanded state of the items.

Selector

[kendoTreeListExpandable]

Export Name

Accessible in templates as #kendoExpandableInstance="kendoTreeListExpandable"

Inputs

initiallyExpanded

boolean

(default: false) Specifies if the items should be initially expanded.

expandBy

string | (dataItem: any) => any

Defines the item key that will be stored in the expandedKeys collection. Defaults to the component idField.

expandedKeys

any[]

Sets the expanded item keys.

Events

expandedKeysChange

EventEmitter<any>

Fires when the expandedKeys are changed.