CommandColumnComponent
Represents the command column of the TreeList. Define the content of the column inside an <ng-template>
tag.
For more information and examples on using the passed fields and command directives, see
editing the TreeList in Angular Reactive Forms.
Usually, the template contains CRUD command directives such as:
<kendo-treelist ...>
<kendo-treelist-column field="ProductID"></kendo-treelist-column>
<kendo-treelist-command-column title="command">
<ng-template kendoTreeListCellTemplate>
<button kendoTreeListEditCommand class="k-primary">Edit</button>
<button kendoTreeListRemoveCommand>Remove</button>
</ng-template>
</kendo-treelist-command-column>
</kendo-treelist>
Selector
kendo-treelist-command-column
Inputs
Name | Type | Default | Description |
---|---|---|---|
autoSize |
|
Indicates whether the column is automatically resized during initialization to fit its header and row content. | |
columnMenu |
|
|
Specifies if the column menu is shown for the column. |
class |
|
Sets custom CSS classes to the column cells. Uses the | |
footerClass |
|
Sets the custom CSS classes to the column footer cell. Under the hood, to apply the property,
the | |
footerStyle |
|
Sets custom styles for the footer cell of the column. Uses the | |
headerClass |
|
Sets custom CSS classes to the column header cell. Uses the | |
headerStyle |
|
Sets custom styles for the header cell of the column. Uses the | |
hidden |
|
|
Sets the visibility of the column (see example). |
includeInChooser |
|
|
Specifies if the column is included in the column-chooser list. |
lockable |
|
|
Specifies if the column can be locked or unlocked from the column menu or by reordering the columns. |
locked |
|
|
Toggles the locked (frozen) state of the columns (more information and example). |
media |
|
Sets the condition that must be satisfied for a column to remain visible (see example).
If you set the | |
minResizableWidth |
|
|
Sets the minimum width (in pixels) for resizing the column using the UI. |
reorderable |
|
|
Indicates whether the column is reorderable. |
resizable |
|
|
Indicates whether the column is resizable. |
style |
|
Sets custom styles for the table cells (excluding the footer and header) of the column. Uses the | |
tableCellsRole |
|
|
Sets the |
title |
|
Sets the title of the column. | |
width |
|
Sets the width of the column (in pixels). |
Fields
Name | Type | Default | Description |
---|---|---|---|
orderIndex |
|
|
The column index after reordering. The orderIndex` is a read-only property. Setting this field does not affect column order. |