TreeListRowProps
The props that the TreeList passes to the TreeListRow component when creating it.
Accessible during the rowRender callback of the TreeList.
Definition
Package:@progress/kendo-react-treelist
Properties
ariaPosInSet?
number
The index of the item on current level, applied to the aria-posinset attribute.
ariaRowIndex?
number
The index to be applied to the aria-rowindex attribute.
ariaSetSize?
number
The count of items on current level, applied to the aria-setsize attribute.
dataItem
any
The data object that represents the current row.
expanded
boolean
The expanded state of the row. Useful for applying aria-expanded accessibility attribute.
isSelected
boolean
Indicates if the row is selected.
level
number[]
An array of indexes of each parent and current item in the data tree.
onClick?
any
The event that is fired when the row is clicked.
The event that is fired when the row context menu is triggered.
The event that is fired when the row is double clicked.
onDrag?
(event: { nativeEvent: any; dragged: number[]; draggedOver: null | number[]; draggedItem: any }) => void
Fires when a row is dragged.
onDrop?
(event: { nativeEvent: any; dragged: number[]; draggedOver: null | number[]; draggedItem: any }) => void
Fires when a row is dragged and dropped.
A function for overriding the default rendering of the row.
ReactNode
rowHeight?
number
Sets the height of the row.
rowIndex
number
The index of the row. Useful for applying aria-rowindex accessibility attribute.
selectedField?
string
The name of the field which will provide a Boolean representation of the selected state of the item.