PanemuTableController
Generic types: | T |
This class provide a way to interact with
. It requires columns information and a way to get data.
Properties
Name | Type | Description |
---|---|---|
criteria |
| |
groupByColumns |
| |
showSettingDialog | Function | Show dialog to customize column position, visibility and stickiness |
sortedColumn | { [key: string]: "asc" | "desc"; } | |
tableOptions |
| |
transposeSelectedRow | Function | Transpose selected row and displayed in a dialog. While the dialog is shown user can select a different row in the table. |
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 editingController |
---|
No documentation has been provided. |
Presentation
|
Type |
set editingController |
---|
No documentation has been provided. |
Presentation
|
Type |
get loading |
---|
Get loading observable. Loading status is true when data is being retrieved from datasource. |
Presentation
|
Type
|
get maxRows |
---|
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 maxRows |
---|
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 mode |
---|
No documentation has been provided. |
Presentation
|
Type
|
get selectedRowSignal |
---|
Get selected row as signal. A row is selected if user click it. RowGroup cannot be selected. |
Presentation
|
Type
|
get startIndex |
---|
Get start index from connected |
Presentation
|
Type
|
set startIndex |
---|
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
|
deleteSelectedRow() |
---|
In browse mode, it will execute |
Presentation
|
Returns
|
deleteState() | ||||||
---|---|---|---|---|---|---|
Delete table state. By default, it reload the window after it. | ||||||
Presentation
| ||||||
Parameters
Returns
|
edit() |
---|
Change table mode to |
Presentation
|
Returns
|
expand() | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Expand cell. Only works if the column | ||||||||||||
Presentation
| ||||||||||||
Parameters
Returns
|
exportToCsv() | ||||||
---|---|---|---|---|---|---|
It calls | ||||||
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 Take a look at | ||||||
Presentation
| ||||||
Parameters
Returns
|
getData() |
---|
Get data being displayed in table. It only returns regular row data. It excludes To get all data 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
|
initPaginationComponent() | ||||||
---|---|---|---|---|---|---|
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
|
insert() |
---|
Change table mode to |
Presentation
|
Returns
|
markForCheck() |
---|
Call angular |
Presentation
|
Returns
|
readState() |
---|
Read state. |
Presentation
|
Returns
|
relayout() |
---|
Called by setting component to repaint table header |
Presentation
|
Returns
|
reloadCurrentPage() |
---|
Reload data without resetting pagination start index. It will cancel |
Presentation
|
Returns
|
reloadData() |
---|
Reload data but reset the pagination start index to 0 before hand. It will cancel |
Presentation
|
Returns
|
async save() |
---|
Save changed rows. This method does the followings:
|
Presentation
|
Returns
|
saveState() |
---|
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
|