Skip to main content

Type Alias: ColumnViewColumnProps<T>

ColumnViewColumnProps<T> = object

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

Props for defining a column in a ColumnView (table).

See

ColumnViewColumn for usage

Type Parameters

Type ParameterDefault typeDescription
TunknownThe type of data for each row

Properties

children?

optional children: ReactNode

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

Menu items for the column header context menu


expand?

optional expand: boolean

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

Whether the column expands to fill available space


fixedWidth?

optional fixedWidth: number

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

Fixed width in pixels


id

id: string

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

Unique identifier for this column


renderCell()

renderCell: (item) => ReactNode

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

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:451

Whether the column can be resized by the user


sortable?

optional sortable: boolean

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

Whether clicking the header sorts by this column


title

title: string

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

Column header text


visible?

optional visible: boolean

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

Whether this column is visible