Moves a column from the source column index to the target column index.
The index of the column to be moved.
The index where the column will be moved to.
Sorts an array of SortItem objects based on a predetermined sorting algorithm.
An array of SortItem objects to be sorted.
This is triggered when an external filter has changed.
The type of elements being filtered.
A function that takes an element of type T and returns a boolean indicating whether the element satisfies the filter conditions.
Retrieves the area model based on the given row area identifier.
The identifier of the row area.
The area model corresponding to the provided row area identifier.
Retrieves the body model.
The body model representing an area.
Retrieves the column definition for the specified index.
The index of the column to retrieve the definition for.
Retrieves the column definitions for a table.
An array of column definitions or undefined if there are no column definitions.
Retrieves the width (in pixels) of a specific column.
The index of the column to get the width of.
The width of the specified column.
Retrieves the width of a given column in the table.
The index of the column for which to get the width.
The width of the column in pixels.
Retrieves the height of a specific row in the provided row area.
The identifier of the row area.
The index of the row for which to retrieve the height.
The height of the specified row in pixels.
Retrieves the selection model associated with the component.
The selection model instance if available, or undefined if none is found.
Optional isOptional: whether a column is shown. Implemented by TableModel.
column index, property or column definition
false for hidden and for unknown columns
tableModel.isColumnVisible?.("category");
Checks if the footer is visible.
Returns true if the footer is visible, otherwise returns false.
Optional setOptional: shows or hides a column (width 0, definition, position and width are kept). Implemented by TableModel; TableApi.setColumnVisible uses it and repaints.
column index, property or column definition
false hides the column
false if there is no such column definition
tableModel.setColumnVisible?.(3, false);
Optional setOptional: shows or hides the footer (height 0, the rows stay in the model). Implemented by TableModel; TableApi.setFooterVisible uses it and repaints.
false hides the footer
tableModel.setFooterVisible?.(false);
Optional setOptional: shows or hides the header (height 0, the rows stay in the model). Implemented by TableModel; TableApi.setHeaderVisible uses it and repaints.
false hides the header
tableModel.setHeaderVisible?.(false);
The TableModelIf is on one hand a container for the header, body, and footer models (see : #getAreaModel, and #AreaModelIf), and on the other hand the master of the column information (#getColumnCount(), #getColumnWidth(columnIndex: number)).
If getFixedLeftColumnCount() returns a value greater than 0, a fixed west area will be rendered in the header, body, and footer. A value greater than 0 for getFixedLeftColumnCount() will result in the presence of an east area.