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