Table
Components
LmnTableComponent
import { LmnTableComponent } from '@elemental/ui';
Decorators: |
|
Generic types: | DATA |
Selectors: | table[ |
Properties
Name | Type | Description |
---|---|---|
allowReorder r |
| Allow reordering of the rows. |
loadingChunkSize r |
| Loading chunk size for the table. |
nativeElement r | HTMLElement | Native element of the component. |
negative r |
| Negative variant of the table. |
rowSize r |
| Row size for the table. |
sorting r |
| The sorting state. |
sortingEnabled r |
| Whether the sorting is enabled. |
source r |
| Data source for the table. |
toggleSelectionOnRowClick r |
| Allow selection of the rows on click. |
trackBy r |
| TrackBy function used when rendering the row and cells. |
Methods
addColumnDef() | ||||||
---|---|---|---|---|---|---|
Add a column definition for the table. | ||||||
Presentation
| ||||||
Parameters
Returnsvoid |
clearColumnDefs() |
---|
Remove all column definitions from the table |
Presentation
|
Returnsvoid |
clearFooterRowDef() |
---|
Remove the footer row definition from the table |
Presentation
|
Returnsvoid |
clearHeaderRowDef() |
---|
Remove the header row definition from the table |
Presentation
|
Returnsvoid |
clearNoDataRowDef() |
---|
Remove the no data row definition from the table |
Presentation
|
Returnsvoid |
clearRowDefs() |
---|
Remove all row definitions from the table |
Presentation
|
Returnsvoid |
removeColumnDef() | ||||||
---|---|---|---|---|---|---|
Remove a column definition from the table | ||||||
Presentation
| ||||||
Parameters
Returnsvoid |
rowSelection() | |||||||||
---|---|---|---|---|---|---|---|---|---|
Select programmatically a row | |||||||||
Presentation
| |||||||||
Parameters
Returnsvoid |
setFooterRowDef() | ||||||
---|---|---|---|---|---|---|
Set a footer row definition for the table | ||||||
Presentation
| ||||||
Parameters
Returnsvoid |
setHeaderRowDef() | ||||||
---|---|---|---|---|---|---|
Set a header row definition for the table | ||||||
Presentation
| ||||||
Parameters
Returnsvoid |
setNoDataRowDef() | ||||||
---|---|---|---|---|---|---|
Set a no data row definition for the table | ||||||
Presentation
| ||||||
Parameters
Returnsvoid |
setRowDef() | ||||||
---|---|---|---|---|---|---|
Set a row definition for the table | ||||||
Presentation
| ||||||
Parameters
Returnsvoid |
sort() | |||||||||
---|---|---|---|---|---|---|---|---|---|
Sort a column | |||||||||
Presentation
| |||||||||
Parameters
Returnsvoid |
LmnCellComponent
import { LmnCellComponent } from '@elemental/ui';
Decorators: |
|
Selectors: | td[ th[ th[ td[ th[ |
Properties
Name | Type | Description |
---|---|---|
columnName r |
| The column name of the cell |
focusableChildren r |
| The focusable children of the cell |
nativeElement r | HTMLElement | Native element reference |
requireActivation r |
| Whether the cell requires activation to be navigated |
type r | "header" | "footer" | "data" | The type of the cell |
width r |
| The width of the cell |
LmnRowComponent
import { LmnRowComponent } from '@elemental/ui';
Decorators: |
|
Selectors: | tr[ tr[ tr[ |
Properties
Name | Type | Description |
---|---|---|
cells r |
| The cells in the row. |
focusableChildren r |
| The focusable children in the row. |
nativeElement r | HTMLElement | Native element of the row. |
type r | "header" | "footer" | "data" | Type of the row. |
width r |
| The width of the row. |
Methods
recalculateStickyCells() |
---|
Recalculate the sticky cells in the row. |
Presentation
|
Returnsvoid |
reorderFocusableCells() |
---|
Reorder the focusable cells in the row. |
Presentation
|
Returnsvoid |
Directives
LmnCellDefDirective
import { LmnCellDefDirective } from '@elemental/ui';
Decorators: |
|
Generic types: | T |
Selectors: | [ |
Extends: | LmnBaseCellDefDirective |
Properties
Name | Type | Description |
---|---|---|
template inherited from LmnBaseCellDefDirective |
| Template for the cell definition. |
LmnHeaderCellDefDirective
import { LmnHeaderCellDefDirective } from '@elemental/ui';
Decorators: |
|
Selectors: | [ |
Extends: | LmnBaseCellDefDirective |
Properties
Name | Type | Description |
---|---|---|
template inherited from LmnBaseCellDefDirective |
| Template for the cell definition. |
LmnFooterCellDefDirective
import { LmnFooterCellDefDirective } from '@elemental/ui';
Decorators: |
|
Selectors: | [ |
Extends: | LmnBaseCellDefDirective |
Properties
Name | Type | Description |
---|---|---|
template inherited from LmnBaseCellDefDirective |
| Template for the cell definition. |
LmnColumnDefDirective
import { LmnColumnDefDirective } from '@elemental/ui';
Decorators: |
|
Selectors: | [ |
Properties
Name | Type | Description |
---|---|---|
allowResize r |
| Allows resizing of the column. |
allowSorting r |
| Allows sorting of the column. |
columnWidth r |
| Fixed width of the column. Can be a string, number, or null for default width. |
dataCellDef r |
| Template for the data cell of the column. |
defaultSorting r |
| Default sorting order of the column. Can be 'asc' for ascending, 'desc' for descending, or null for no sorting. |
fixed r |
| Fixed position of the column. Can be 'start', 'end', or undefined for no fixed position. |
footerCellDef r |
| Template for the footer cell of the column. |
headerCellDef r |
| Template for the header cell of the column. |
name r |
| Name of the column. |
resizing r |
| Indicates if the column is currently being resized. |
LmnRowDefDirective
import { LmnRowDefDirective } from '@elemental/ui';
Decorators: |
|
Generic types: | T |
Selectors: | [ |
Extends: | LmnBaseRowDefDirective |
Properties
Name | Type | Description |
---|---|---|
columns r overrides LmnBaseRowDefDirective |
| Columns to render in the row. |
id r inherited from LmnBaseRowDefDirective | string | Unique identifier for the row definition. |
selectionDisabled r |
| Function that determines whether the row should be selectable. |
show r |
| Function that determines whether the row should be shown. |
skipSelection r inherited from LmnBaseRowDefDirective |
| Whether the row should have selection. |
template r inherited from LmnBaseRowDefDirective |
| Template for the row definition. |
LmnHeaderRowDefDirective
import { LmnHeaderRowDefDirective } from '@elemental/ui';
Decorators: |
|
Selectors: | [ |
Extends: | LmnBaseRowDefDirective |
Properties
Name | Type | Description |
---|---|---|
columns r overrides LmnBaseRowDefDirective |
| Columns to render in the row. |
fixed r |
| Whether the row should be fixed. |
id r inherited from LmnBaseRowDefDirective | string | Unique identifier for the row definition. |
skipSelection r inherited from LmnBaseRowDefDirective |
| Whether the row should have selection. |
template r inherited from LmnBaseRowDefDirective |
| Template for the row definition. |
LmnFooterRowDefDirective
import { LmnFooterRowDefDirective } from '@elemental/ui';
Decorators: |
|
Selectors: | [ |
Extends: | LmnBaseRowDefDirective |
Properties
Name | Type | Description |
---|---|---|
columns r overrides LmnBaseRowDefDirective |
| Columns to render in the row. |
id r inherited from LmnBaseRowDefDirective | string | Unique identifier for the row definition. |
skipSelection r overrides LmnBaseRowDefDirective |
| Whether the row should have selection. |
template r inherited from LmnBaseRowDefDirective |
| Template for the row definition. |
LmnNoDataRowDefDirective
import { LmnNoDataRowDefDirective } from '@elemental/ui';
Decorators: |
|
Selectors: | [ |
Properties
Name | Type | Description |
---|---|---|
template r |
| Template for the row definition. |