New to Kendo UI for Angular? Start a free 30-day trial
ColumnMenuAutoSizeColumnComponent
Represents the column-menu item for resizing the specified column to the minimum possible width so that it fits the header or cell content without wrapping. The component can be placed inside a ColumnMenuTemplate directive. See example.
You have to set the ColumnMenuService and column
that are passed by
the template to the service
and column
input of the kendo-treelist-columnmenu-autosize-column
component.
html
<kendo-treelist [columnMenu]="true" ...>
<ng-template kendoTreeListColumnMenuTemplate let-service="service" let-column="column">
<kendo-treelist-columnmenu-autosize-column [column]="column" [service]="service">
</kendo-treelist-columnmenu-autosize-column>
</ng-template>
</kendo-treelist>
Selector
kendo-treelist-columnmenu-autosize-column
Inputs
Name | Type | Default | Description |
---|---|---|---|
column |
|
The TreeList column instance which will be resized through the auto size column option. | |
service |
|
Represents the |
Methods
autoSizeColumn |
---|
Resizes a specified column to the minimum possible width so that it fits the widest header or cell content without wrapping. |