Skip to content

@jimka/typescript-ui / component/table / ColumnSpec

Interface: ColumnSpec

Defined in: src/typescript/lib/component/table/ColumnConfig.ts:52

Presentation specification passed to a Table to control which columns are shown and how they behave.

When omitted entirely the table auto-generates one column per model field using default sizing — identical to the pre-spec behaviour.

Example

typescript
new Table(store, {
    columns: [
        { field: 'name', minWidth: 120 },
        { field: 'id',   maxWidth: 80  },
    ],
})

Properties

appendUnlisted?

ts
optional appendUnlisted: boolean;

Defined in: src/typescript/lib/component/table/ColumnConfig.ts:60

When true (the default) model fields not mentioned in columns are appended automatically after the listed columns with default sizing. When false only the explicitly listed fields appear in the table.


columns

ts
columns: ColumnConfig[];

Defined in: src/typescript/lib/component/table/ColumnConfig.ts:54

Per-column presentation overrides, in preferred display order.