Type Alias: TreeListViewProps<T>
TreeListViewProps<
T> =Omit<GtkListViewProps,"renderItem"> &object
Defined in: jsx.ts:444
Props for the TreeListView component.
Type Declaration
| Name | Type | Description | Defined in |
|---|---|---|---|
autoexpand? | boolean | Whether to automatically expand new rows (default: false) | jsx.ts:450 |
estimatedItemHeight? | number | Estimated item height in pixels for proper virtualization before content loads | jsx.ts:448 |
onSelectionChanged()? | (ids) => void | Callback when selection changes | jsx.ts:456 |
renderItem | TreeRenderItemFn<T> | Function to render each tree item | jsx.ts:446 |
selected? | string[] | Currently selected item IDs | jsx.ts:454 |
selectionMode? | Gtk.SelectionMode | Selection mode for the tree | jsx.ts:452 |
Type Parameters
| Type Parameter | Default type | Description |
|---|---|---|
T | unknown | The type of items in the tree |