TreeListRowProps
The props that the TreeList passes to the TreeListRow component when creating it.
Accessible during the rowRender
callback of the TreeList.
Name | Type | Default | Description |
---|---|---|---|
ariaPosInSet? |
|
The index of the item on current level, applied to the | |
ariaRowIndex? |
|
The index to be applied to the | |
ariaSetSize? |
|
The count of items on current level, applied to the | |
dataItem |
|
The | |
expanded |
|
The expanded state of the row. Useful for applying | |
isSelected |
|
Indicates if the row is selected. | |
level |
|
An array of indexes of each parent and current item in the data tree. | |
onClick? |
|
The event that is fired when the row is clicked. | |
onContextMenu? |
|
The event that is fired when the row context menu is triggered. | |
onDoubleClick? |
|
The event that is fired when the row is double clicked. | |
onDrag? |
|
Fires when a row is dragged. | |
onDrop? |
|
Fires when a row is dragged and dropped. | |
render? |
|
A function for overriding the default rendering of the row. | |
rowHeight? |
|
Sets the height of the row. | |
rowIndex |
|
The index of the row. Useful for applying | |
selectedField? |
|
The name of the field which will provide a Boolean representation of the selected state of the item. |