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

TreeListProps

Interface

Represents the props of the Kendo UI for Vue TreeList component.

Definition

Package:@progress/kendo-vue-treelist

Properties

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.

Enables the virtualization of the columns (see example). When you enable it, the TreeList does not render the columns outside the viewport.

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.

Sets the data of the TreeList.

Specifies the name of the field that holds the edit state of the current item as a boolean (more information and examples).

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.

Enables filtering for the columns that have their field option set.

filterOperators?

FilterOperators

Sets the filter operators that the filters use.

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.

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.

Sets the template that the TreeList renders when the dataItems property is empty or undefined.

Fires when the user reorders the columns.

Fires when the data state of the TreeList changes.

Fires when the user clicks the expand or collapse icon of a row.

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.

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).

Parameters:eventTreeListItemChangeEvent

Fires when the user presses a keyboard key.

Parameters:eventTreeListKeyDownEvent

Fires when the page of the TreeList changes.

Parameters:eventTreeListPageChangeEvent

Fires when a row loses focus.

Parameters:eventTreeListRowEvent

Fires when the user clicks a row.

Parameters:eventTreeListRowClickEvent

Fires when the user opens the context menu of a row.

Fires when a row receives focus.

Parameters:eventTreeListRowEvent

Fires when the user tries to select or deselect a row or cell (more information and example).

Fires when the sorting of the TreeList changes (see example). You have to handle the event and sort the data yourself.

Parameters:eventTreeListSortChangeEvent

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 the numeric (buttons with numbers)

and input (input for typing the page number) values.

  • pageSizes: Boolean or Array<number>—Shows a menu for selecting the page size.
  • previousNext: Boolean—Toggles the Previous and Next buttons.

Sets the pager component that the TreeList renders.

When set to true, the user can reorder the rows of the TreeList.

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.

Sets the height of the rows and makes all rows the same height.

Sets a custom render for the rows. Use it to override the default rendering of the row.

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.

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
Default:

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).

Specifies the name of the field that holds the subitems of the item as an array.

Sets the props that the TreeList passes to the inner HTML table element.

take?

number

Sets the number of records that the TreeList takes.

Sets the template that the TreeList renders as its toolbar.

Sets the styles of the wrapper element of the TreeList.