Skip to content

API Reference / @gtkx/components / index / ColumnViewColumn

Type Alias: ColumnViewColumn<T>

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

Defined in: types.d.ts:82

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

Released under the MPL-2.0 License.