Skip to main content

Type Alias: TreeListViewProps<T>

TreeListViewProps<T> = Omit<GtkListViewProps, "renderItem"> & object

Defined in: jsx.ts:444

Props for the TreeListView component.

Type Declaration

NameTypeDescriptionDefined in
autoexpand?booleanWhether to automatically expand new rows (default: false)jsx.ts:450
estimatedItemHeight?numberEstimated item height in pixels for proper virtualization before content loadsjsx.ts:448
onSelectionChanged()?(ids) => voidCallback when selection changesjsx.ts:456
renderItemTreeRenderItemFn<T>Function to render each tree itemjsx.ts:446
selected?string[]Currently selected item IDsjsx.ts:454
selectionMode?Gtk.SelectionModeSelection mode for the treejsx.ts:452

Type Parameters

Type ParameterDefault typeDescription
TunknownThe type of items in the tree