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

TemplateEditingDirective

A directive which encapsulates the editing operations of the TreeList when using the Template-Driven Angular Forms (see example).

Selector

[kendoTreeListTemplateEditing]

Export Name

Accessible in templates as #kendoTemplateEditingInstance="kendoTreeListTemplateEditing"

Inputs

kendoTreeListTemplateEditing

() => any

The function that creates the dataItem for the new rows.

removeConfirmation

(dataItem: any, parent?: any) => Promise<boolean> | Observable<boolean> | boolean

A function that is called to confirm if the dataItem will be removed.

editService

EditService

The edit service that will handle the operations.

newItemId

(item: any, parent?: any) => any

Gets or sets a function that will be called to determine the unique identifier for new items. The function receives the item and its parent as parameters and must return an ID.