New to Kendo UI for Angular? Start a free 30-day trial
AddCommandToolbarDirective
Represents the command for adding a new item to the TreeList.
You can apply this directive to any kendo-toolbar-button
element inside a
ToolbarComponent used in the TreeList.
When the user clicks the toolbar button that is associated with the directive, the add event is triggered.
html
<kendo-grid>
<kendo-toolbar>
<kendo-toolbar-button text="Add new" kendoTreeListAddTool></kendo-toolbar-button>
</kendo-toolbar>
</kendo-grid>
Selector
[kendoTreeListAddTool]