Skip to content

@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 ParameterDefault typeDescription
TunknownThe type of data for each row Used by GtkColumnView.Column compound component.

Properties

children?

optional children?: ReactNode

Defined in: packages/react/src/jsx.ts:437

Menu items for the column header context menu


expand?

optional expand?: boolean

Defined in: packages/react/src/jsx.ts:423

Whether the column expands to fill available space


fixedWidth?

optional fixedWidth?: 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

ParameterType
itemT

Returns

ReactNode


resizable?

optional resizable?: boolean

Defined in: packages/react/src/jsx.ts:425

Whether the column can be resized by the user


sortable?

optional sortable?: 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?

optional visible?: boolean

Defined in: packages/react/src/jsx.ts:433

Whether this column is visible