TreeListProps
Represents the props of the Kendo UI for Vue TreeList component.
Definition
Package:@progress/kendo-vue-treelist
Properties
cellRender?
any
Sets a custom render for the cells. Use it to override the default rendering of the cell.
Sets the columns of the TreeList as a collection of TreeListColumnProps.
columnVirtualization?
boolean
Enables the virtualization of the columns (see example). When you enable it, the TreeList does not render the columns outside the viewport.
dataItemKey?
string
Sets the field of the data item that the TreeList uses as the row key. If you do not set it, the TreeList uses the index of the data item as the row key. This can stop rows from updating during paging or scrolling.
dataItems?
any[]
Sets the data of the TreeList.
editField?
string
Specifies the name of the field that holds the edit state of the current item as a boolean
(more information and examples).
expandField?
string
Specifies the name of the field that holds the expanded state of the item as a boolean.
filter?
FilterDescriptor[]
The descriptors by which the TreeList filters the data (more information and examples).
This affects the values and buttons in the FilterRow of the TreeList.
filterable?
boolean
Enables filtering for the columns that have their field option set.
filterOperators?
FilterOperators
Sets the filter operators that the filters use.
filterRow?
any
Sets a custom component that the TreeList renders instead of the default FilterRow.
Sets a custom render for the header cells. Use it to override the default rendering of the header cell.
navigatable?
boolean
When set to true, the user can use dedicated keyboard shortcuts to interact with the TreeList.
By default, keyboard navigation is off and the TreeList content follows the normal tab sequence.
noRecords?
any
Sets the template that the TreeList renders when the dataItems property is empty or undefined.
onColumnreorder?
(event: TreeListColumnReorderEvent) => void
Fires when the user reorders the columns.
onDatastatechange?
(event: TreeListDataStateChangeEvent) => void
Fires when the data state of the TreeList changes.
onExpandchange?
(event: TreeListExpandChangeEvent) => void
Fires when the user clicks the expand or collapse icon of a row.
onFilterchange?
(event: TreeListFilterChangeEvent) => void
Fires when the user changes the TreeList filter in the UI (more information and examples). You have to handle the event and filter the data yourself.
onItemchange?
(event: TreeListItemChangeEvent) => void
Fires when the user changes the values of the item.
The event is not debounced. It fires on every onChange event of the input in the current EditCell
(more information and examples).
onKeyDown?
(event: TreeListKeyDownEvent) => void
Fires when the user presses a keyboard key.
onPagechange?
(event: TreeListPageChangeEvent) => void
Fires when the page of the TreeList changes.
onRowblur?
(event: TreeListRowEvent) => void
Fires when a row loses focus.
onRowclick?
(event: TreeListRowClickEvent) => void
Fires when the user clicks a row.
onRowcontextmenu?
(event: TreeListRowContextMenuEvent) => void
Fires when the user opens the context menu of a row.
onRowfocus?
(event: TreeListRowEvent) => void
Fires when a row receives focus.
onSelectionchange?
(event: TreeListSelectionChangeEvent) => void
Fires when the user tries to select or deselect a row or cell (more information and example).
onSortchange?
(event: TreeListSortChangeEvent) => void
Fires when the sorting of the TreeList changes (see example). You have to handle the event and sort the data yourself.
pageable?
any
Configures the pager of the TreeList.
The available options are:
buttonCount: Number—Sets the maximum numeric buttons count before the buttons are collapsed.info: Boolean—Toggles the information about the current page and the total number of records.type: PagerType—Accepts thenumeric(buttons with numbers)
and input (input for typing the page number) values.
pageSizes: BooleanorArray<number>—Shows a menu for selecting the page size.previousNext: Boolean—Toggles the Previous and Next buttons.
pager?
any
Sets the pager component that the TreeList renders.
reordableRows?
boolean
When set to true, the user can reorder the rows of the TreeList.
reorderable?
boolean
When set to true, the user can reorder columns by dragging their header cells.
rowClass?
Function
A function that returns a custom class for the row.
rowHeight?
number
Sets the height of the rows and makes all rows the same height.
rowRender?
any
Sets a custom render for the rows. Use it to override the default rendering of the row.
scrollable?
string
Sets the scroll mode of the TreeList.
The available options are:
none—Renders no scrollbar.scrollable—The default scroll mode of the TreeList.
Requires you to set the overflow and height (for vertical scrolling),
or width (for horizontal scrolling) styles.
virtual—Enables the vertical virtual scrolling of the TreeList.
Requires you to set the overflow and height styles and rowHeight prop of the TreeList.
Sets the selection settings of the TreeList.
selectedField?
string
Specifies the name of the field that holds the selected state of the item as a boolean
(see example).
size?
string
Configures the size of the TreeList.
The available options are:
- small
- medium
undefined
skip?
number
Sets the number of records that the TreeList skips.
sort?
SortDescriptor[]
The descriptors by which the TreeList sorts the data. The TreeList applies the sorting styles and buttons to the affected columns.
sortable?
SortSettings
Enables sorting (see example).
subItemsField?
string
Specifies the name of the field that holds the subitems of the item as an array.
tableProps?
any
Sets the props that the TreeList passes to the inner HTML table element.
take?
number
Sets the number of records that the TreeList takes.
toolbar?
any
Sets the template that the TreeList renders as its toolbar.
wrapperStyle?
Object
Sets the styles of the wrapper element of the TreeList.