PanemuTableController
Generic types: | T |
Implements: |
|
This class provide a way to interact with
. It requires columns information and a way to get data.
Properties
Name | Type | Description |
---|---|---|
criteria |
| |
groupByColumns |
| |
refreshTable | Function | Force refresh the table. |
relayout | Function | Called by setting component to repaint table header |
sortedColumn | { [key: string]: "asc" | "desc"; } | |
tableOptions |
|
Accessors
get afterReloadEvent |
---|
Observable to listen to after reload event. This is only for table controller. It will not fire for |
Presentation
|
Type
|
get beforeReloadEvent |
---|
This observable fire just before loading a data. This is only for table controller. It will not fire for |
Presentation
|
Type
|
get loading |
---|
Get loading observable. Loading status is true when data is being retrieved from datasource. |
Presentation
|
Type
|
get maxRowsimplements
|
---|
Get max rows from connected To change default max rows for all tables across application, create a service extending PanemuTableService and override |
Presentation
|
Type
|
set maxRowsimplements
|
---|
Set max rows to display in table. Only usable if there is To change default max rows for all tables across application, create a service extending PanemuTableService and override The value is limited by |
Presentation
|
Type
|
get startIndeximplements
|
---|
Get start index from connected |
Presentation
|
Type
|
set startIndeximplements
|
---|
Set start index. Only usable if there is |
Presentation
|
Type
|
Static Methods
static create() | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Create controller with pagination, sorting, filtering and grouping handled by supplied | ||||||||||||
Presentation
| ||||||||||||
Parameters
Returns |
static createWithCustomDataSource() | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Create controller with pagination, sorting, filtering and grouping handled by custom datasource. It provide a way to specify custom logic for pagination, sorting, filtering and grouping in server side. | ||||||||||||
Presentation
| ||||||||||||
Parameters
Returns |
Methods
clearSelection() |
---|
Clear row selection |
Presentation
|
Returns
|
deleteState() | ||||||
---|---|---|---|---|---|---|
Delete table state. By default, it reload the window after it. | ||||||
Presentation
| ||||||
Parameters
Returns
|
expand() | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Expand cell. Only works of the column | ||||||||||||
Presentation
| ||||||||||||
Parameters
Returns
|
getAllData() |
---|
Get data being displayed in table including |
Presentation
|
Returns
|
getAllDataAsSignal() |
---|
Get data being displayed in table as signal. See also |
Presentation
|
Returns
|
getCsvData() | ||||||
---|---|---|---|---|---|---|
Get data as comma separated string. By default it includes the header and | ||||||
Presentation
| ||||||
Parameters
Returns
|
getData() |
---|
Get data being displayed in table. It only returns regular row data. It excludes To get all date from table including of type |
Presentation
|
Returns
|
getSelectedRow() |
---|
Get selected row. A row is selected if user click it. RowGroup cannot be selected. |
Presentation
|
Returns
|
getSelectedRowSignal() |
---|
Get selected row as signal. A row is selected if user click it. RowGroup cannot be selected. |
Presentation
|
Returns
|
initPaginationComponent()implements
| ||||||
---|---|---|---|---|---|---|
Connect pagination component with the controller. It tells the controller that pagination should be used. If there is no pagination component calling this method, the controller will set its The controller will also tell the pagination about pagination information after each reload. | ||||||
Presentation
| ||||||
Parameters
Returns
|
readState() |
---|
Read state. |
Presentation
|
Returns
|
reloadCurrentPage()implements
|
---|
Reload data without resetting pagination start index. |
Presentation
|
Returns
|
reloadData() |
---|
Reload data but reset the pagination start index to 0 before hand. |
Presentation
|
Returns
|
saveState()implements
|
---|
Save table states. The states are:
Saving state only works if |
Presentation
|
Returns
|
selectFirst() |
---|
Select the first data row (not RowGroup nor ExpansionRow). If the table is groupped and none of the group is expanded, this function will always return false because none will be selected. |
Presentation
|
Returns
|
selectRow() | ||||||
---|---|---|---|---|---|---|
Select a row in the table by row index or row object. RowGroup can't be selected. | ||||||
Presentation
| ||||||
Parameters
Returns
|