Skip to content

API Reference / @gtkx/components / ColumnViewColumn

Type Alias: ColumnViewColumn<T> ​

ColumnViewColumn<T> = Omit<GtkColumnViewColumnProps, "factory" | "sorter" | "id" | "title"> & object

Defined in: packages/components/src/types.ts:173

One column of a ColumnView, pairing Gtk.ColumnViewColumn props with a cell renderer.

Type Declaration ​

headerMenu? ​

optional headerMenu?: ReactNode

Menu element popped up as the column header's context menu, on a right-click.

id ​

id: string

Stable identifier, also used to address the column through sorting props.

isSortable? ​

optional isSortable?: boolean

Makes the column header clickable, reporting the choice through onSortChanged.

renderCell ​

renderCell: ListItemRenderer<T>

Renders the contents of this column's cell for one item.

title ​

title: string

Text shown in the column header.

Type Parameters ​

T ​

T = unknown