New to Kendo UI for AngularStart a free 30-day trial

ExpandableDirective

A directive which controls the expanded state of items in the TreeList. See example.

html
<kendo-treelist ...
  [kendoTreeListFlatBinding]="data"
  kendoTreeListExpandable> ...
</kendo-treelist>

Selector

[kendoTreeListExpandable]

Export Name

Accessible in templates as #kendoExpandableInstance="kendoTreeListExpandable"

Inputs

NameTypeDefaultDescription

expandBy

string | (dataItem: any) => any

Defines the item key stored in the expandedKeys collection. Uses the component idField by default.

expandedKeys

any[]

Sets the expanded item keys. Use this property to control which items are expanded.

initiallyExpanded

boolean

false

Specifies if items are initially expanded.

Events

NameTypeDescription

expandedKeysChange

EventEmitter<any>

Emits when the expandedKeys change.

In this article
SelectorExport NameInputsEvents
Not finding the help you need?
Contact Support