TreeListRowProps

The props that the TreeList passes to the TreeListRow component when creating it. Accessible during the rowRender callback of the TreeList.

dataItem

any

The data object that represents the current row.

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.

onDrag?

(event: { dragged: number[]; draggedItem: any; draggedOver: number[] | null; nativeEvent: any; }) => void

Fires when a row is dragged.

onDrop?

(event: { dragged: number[]; draggedItem: any; draggedOver: number[] | null; nativeEvent: any; }) => void

Fires when a row is dragged and dropped.

render?

(row: ReactElement<HTMLTableRowElement>, props: TreeListRowProps) => React.ReactNode

A function for overriding the default rendering of the row.

rowHeight?

number

Sets the height of the row.

selectedField?

string

The name of the field which will provide a Boolean representation of the selected state of the item.