Skip to main content

Table

The Table component provides methods and properties to interact with tables. It is derived from the base component.

setDimensions()

Sets the dimensions of the table including the number of rows, columns, and whether there is a header.

setDimensions(rows: number, columns: number, header: boolean): void;

setSelection()

Sets the selection configuration for the table.

setSelection(selection: VISU_NAMESPACE.ETableSelection): void;

getSelection()

Gets the current selection configuration of the table.

getSelection(): VISU_NAMESPACE.ETableSelection;

setSelectionButtonsSize()

Sets the size of the selection buttons in the table.

setSelectionButtonsSize(size: number): void;

setColumnWidth()

Sets the width of a specific column in the table.

setColumnWidth(columnIndex: number, width: string): void;

getColumnWidth()

Gets the width of a specific column in the table.

getColumnWidth(columnIndex: number): string;

setSelectionColumnWidth()

Sets the width of the selection column in the table.

setSelectionColumnWidth(width: string): void;

getSelectionColumnWidth()

Gets the width of the selection column in the table.

getSelectionColumnWidth(): string;

getCell()

Gets a specific cell in the table.

getCell(rowIndex: number, columnIndex: number): TableCellWrapper;

getHeaderCell()

Gets a specific header cell in the table.

getHeaderCell(columnIndex: number): TableHeaderCellWrapper;

resetTable()

Resets the table to its initial state.

resetTable(): void;

Table Cell Methods

setValue()

Sets the value of the table cell.

setValue(value: string): void;

getValue()

Gets the value of the table cell.

getValue(): string;

setHAlignment()

Sets the horizontal alignment of the table cell.

setHAlignment(hAlignment: VISU_NAMESPACE.EHAlignment): void;

getHAlignment()

Gets the horizontal alignment of the table cell.

getHAlignment(): VISU_NAMESPACE.EHAlignment;

setFontSize()

Sets the font size of the table cell.

setFontSize(fontSize: number): void;

getFontSize()

Gets the font size of the table cell.

getFontSize(): number;

setTextColor()

Sets the text color of the table cell.

setTextColor(color: string): void;

getTextColor()

Gets the text color of the table cell.

getTextColor(): string;

setBackgroundColor()

Sets the background color of the table cell.

setBackgroundColor(color: string): void;

getBackgroundColor()

Gets the background color of the table cell.

getBackgroundColor(): string;

``

Table Header Cell Methods

setLabel()

Sets the label of the table header cell.

setLabel(label: string): void;

getLabel()

Gets the label of the table header cell.

getLabel(): string;

setHAlignment()

Sets the horizontal alignment of the table header cell.

setHAlignment(hAlignment: VISU_NAMESPACE.EHAlignment): void;

getHAlignment()

Gets the horizontal alignment of the table header cell.

getHAlignment(): VISU_NAMESPACE.EHAlignment;

setFontSize()

Sets the font size of the table header cell.

setFontSize(fontSize: number): void;

getFontSize()

Gets the font size of the table header cell.

getFontSize(): number;

``

Properties

selectedRows

An array containing the indices of the selected rows.

selectedRows: number[];

hasUserInput

Indicates if the table has received user input.

hasUserInput: boolean;