table/src/table/table.types.ts
Defines a column in the Table component.
Example :protected readonly columns: TableColumn[] = [
{ identifier: 'author', label: 'Author' },
{ identifier: 'title', label: 'Title' },
{ identifier: 'pages': label: 'Pages', align: TableColumnHAlign.Right },
{ identifier: 'price', label: 'Price', align: TableColumnHAlign.Right },
];import { ITableColumn } from '@talenra/components/table';See TableComponent
Properties |
|
| disableRowSelection |
disableRowSelection:
|
Type : boolean
|
| Optional |
|
Disables row selection for the column. Use to prevent interferences when implementing a custom renderer with event handlers. |
| field |
field:
|
Type : string
|
|
Field name in the data object. Used to map the data object's field to the corresponding column. |
| hAlign |
hAlign:
|
Type : TTableColumnHAlign
|
| Optional |
|
Horizontal alignment of content in the column. Note that this setting affects table body's cells ( |
| identifier |
identifier:
|
Type : string
|
|
Unique identifier for the column. |
| label |
label:
|
Type : string
|
| Optional |
|
Label displayed in the table's header. |
| renderer |
renderer:
|
Type : Type<unknown>
|
| Optional |
|
Custom renderer component. Use a renderer if rendering a simple string value does not match your requirements. See TableComponent See ITableCellRenderer |
| resizable |
resizable:
|
Type : boolean
|
| Optional |
|
Determines whether the column is user-resizable. If set |
| sortable |
sortable:
|
Type : boolean
|
| Optional |
|
Determines whether the column is sortable. |
| width |
width:
|
Type : string | TTableColumnWidth
|
| Optional |
|
Width of the column. Provide a CSS length unit string (e.g. |