@gtkx/react / ColumnViewColumnProps
Type Alias: ColumnViewColumnProps<T>
ColumnViewColumnProps<
T> =object
Defined in: packages/react/src/jsx.ts:419
Props for defining a column in a ColumnView (table).
Type Parameters
| Type Parameter | Default type | Description |
|---|---|---|
T | unknown | The type of data for each row Used by GtkColumnView.Column compound component. |
Properties
children?
optionalchildren?:ReactNode
Defined in: packages/react/src/jsx.ts:437
Menu items for the column header context menu
expand?
optionalexpand?:boolean
Defined in: packages/react/src/jsx.ts:423
Whether the column expands to fill available space
fixedWidth?
optionalfixedWidth?:number
Defined in: packages/react/src/jsx.ts:427
Fixed width in pixels
id
id:
string
Defined in: packages/react/src/jsx.ts:429
Unique identifier for this column
renderCell
renderCell: (
item) =>ReactNode
Defined in: packages/react/src/jsx.ts:435
Function to render the cell content for each row
Parameters
| Parameter | Type |
|---|---|
item | T |
Returns
ReactNode
resizable?
optionalresizable?:boolean
Defined in: packages/react/src/jsx.ts:425
Whether the column can be resized by the user
sortable?
optionalsortable?:boolean
Defined in: packages/react/src/jsx.ts:431
Whether clicking the header sorts by this column
title
title:
string
Defined in: packages/react/src/jsx.ts:421
Column header text
visible?
optionalvisible?:boolean
Defined in: packages/react/src/jsx.ts:433
Whether this column is visible