@elemental/ui / Class

LmnTableComponent

Decorators:@Component
Generic types:DATA
Selectors:table[lmn-table]

No documentation has been provided.

Properties

NameTypeDescription
allowReorder
r
InputSignalWithTransform<boolean, unknown>

Allow reordering of the rows.

loadingChunkSize
r
InputSignal<number>

Loading chunk size for the table.

nativeElement
r
HTMLElement

Native element of the component.

negative
r
InputSignalWithTransform<boolean, unknown>

Negative variant of the table.

rowSize
r
InputSignal<LmnTableRowSize>

Row size for the table.

sorting
r
Signal<LmnSorting[] | undefined>

The sorting state.

sortingEnabled
r
Signal<boolean>

Whether the sorting is enabled.

source
r
InputSignal<DATA[]>

Data source for the table.

toggleSelectionOnRowClick
r
InputSignalWithTransform<boolean, unknown>

Allow selection of the rows on click.

trackBy
r
InputSignal<LmnTableTrackByFn<DATA>>

TrackBy function used when rendering the row and cells.

Methods

addColumnDef()

Add a column definition for the table.

Presentation
addColumnDef(columnDef: LmnColumnDefDirective): void;
Parameters
NameTypeDescription
columnDef
LmnColumnDefDirective
Returns
void

clearColumnDefs()

Remove all column definitions from the table

Presentation
clearColumnDefs(): void;
Returns
void

clearFooterRowDef()

Remove the footer row definition from the table

Presentation
clearFooterRowDef(): void;
Returns
void

clearHeaderRowDef()

Remove the header row definition from the table

Presentation
clearHeaderRowDef(): void;
Returns
void

clearNoDataRowDef()

Remove the no data row definition from the table

Presentation
clearNoDataRowDef(): void;
Returns
void

clearRowDefs()

Remove all row definitions from the table

Presentation
clearRowDefs(): void;
Returns
void

removeColumnDef()

Remove a column definition from the table

Presentation
removeColumnDef(columnDef: LmnColumnDefDirective): void;
Parameters
NameTypeDescription
columnDef
LmnColumnDefDirective
Returns
void

rowSelection()

Select programmatically a row

Presentation
rowSelection(index: number, event?: MouseEvent | undefined): void;
Parameters
NameTypeDescription
index
number
event
MouseEvent | undefined
Returns
void

setFooterRowDef()

Set a footer row definition for the table

Presentation
setFooterRowDef(footerRowDef: LmnFooterRowDefDirective): void;
Parameters
NameTypeDescription
footerRowDef
LmnFooterRowDefDirective
Returns
void

setHeaderRowDef()

Set a header row definition for the table

Presentation
setHeaderRowDef(headerRowDef: LmnHeaderRowDefDirective): void;
Parameters
NameTypeDescription
headerRowDef
LmnHeaderRowDefDirective
Returns
void

setNoDataRowDef()

Set a no data row definition for the table

Presentation
setNoDataRowDef(noDataRowDef: LmnNoDataRowDefDirective): void;
Parameters
NameTypeDescription
noDataRowDef
LmnNoDataRowDefDirective
Returns
void

setRowDef()

Set a row definition for the table

Presentation
setRowDef(rowDef: LmnRowDefDirective<DATA>): void;
Parameters
NameTypeDescription
rowDef
LmnRowDefDirective<DATA>
Returns
void

sort()

Sort a column

Presentation
sort(column: string, value?: LmnSortingDirection | undefined): void;
Parameters
NameTypeDescription
column
string
value
LmnSortingDirection | undefined
Returns
void