PanemuTableEditingController
Generic types: | T |
No documentation has been provided.
Properties
Name | Type | Description |
---|---|---|
pts |
|
Methods
protected _createCellEditorRenderer() | |||||||||
---|---|---|---|---|---|---|---|---|---|
No documentation has been provided. | |||||||||
Presentation
| |||||||||
Parameters
Returns |
_createEditingInfo() | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
No documentation has been provided. | ||||||||||||
Presentation
| ||||||||||||
Parameters
Returns |
_deleteEditingInfo() | ||||||
---|---|---|---|---|---|---|
No documentation has been provided. | ||||||
Presentation
| ||||||
Parameters
Returns
|
_getChangedData() | ||||||
---|---|---|---|---|---|---|
If in insert mode, all new rowData are considered changed. If in edit mode, this method will compare the rowData with the original that was created by | ||||||
Presentation
| ||||||
Parameters
Returns
|
_startEdit() | ||||||
---|---|---|---|---|---|---|
No documentation has been provided. | ||||||
Presentation
| ||||||
Parameters
Returns
|
_validate() | ||||||
---|---|---|---|---|---|---|
This method uses validators defined in form control returned by | ||||||
Presentation
| ||||||
Parameters
Returns
|
afterSuccessfulDelete() | ||||||
---|---|---|---|---|---|---|
This method is called after successful deletion of persisted data. It isn't called when deleting new row in | ||||||
Presentation
| ||||||
Parameters
Returns
|
afterSuccessfulSave() | |||||||||
---|---|---|---|---|---|---|---|---|---|
This method called after successful save. It is designed to display information dialog or to put logic to trigger table reload. | |||||||||
Presentation
| |||||||||
Parameters
Returns
|
canDelete() | |||||||||
---|---|---|---|---|---|---|---|---|---|
This method called before deleting a row. Override this method to display a confirmation dialog that allow user to cancel. | |||||||||
Presentation
| |||||||||
Parameters
Returns
|
canReload() | |||||||||
---|---|---|---|---|---|---|---|---|---|
If table is in edit/insert mode and there are changed rows, this method is called. This is where you can put logic to show confirmation dialog if user want to reload the table causing unsaved data lost. | |||||||||
Presentation
| |||||||||
Parameters
Returns
|
canSave() | |||||||||
---|---|---|---|---|---|---|---|---|---|
This method is called before calling saveData. Override this method to do some row level validations or preprocessing. | |||||||||
Presentation
| |||||||||
Parameters
Returns
|
protected cloneRowData() | ||||||
---|---|---|---|---|---|---|
Clone rowData in order to be able to compare changed property values later. | ||||||
Presentation
| ||||||
Parameters
Returns
|
createFormControl() | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
This method create AbstractControl without validator specified. Override this method to:
If a field is displayed in multiple columns, use This method should always return new instance of FormControl, FormGroup, FormArray or null. Do not reusea FormControl instance for mutiple fields/rows. | ||||||||||||
Presentation
| ||||||||||||
Parameters
Returns
|
createNewRowData() |
---|
This method is called upon insert action. Override this method to provide default values for the new rowData. |
Presentation
|
Returns
|
deleteData() | ||||||
---|---|---|---|---|---|---|
Delete logic. This method must be overriden to enable delete functionality. | ||||||
Presentation
| ||||||
Parameters
Returns
|
protected getErrorMessages() | ||||||
---|---|---|---|---|---|---|
Get error message. It support localisation as it uses Override this method to add or create a custom validation message. | ||||||
Presentation
| ||||||
Parameters
Returns
|
protected helper_getFormControl() | |||||||||
---|---|---|---|---|---|---|---|---|---|
Helper method to get formControl of specified field and rowData. | |||||||||
Presentation
| |||||||||
Parameters
Returns
|
protected helper_updateMapCellLoading() | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Helper method to update MapCellEditor loading status | ||||||||||||
Presentation
| ||||||||||||
Parameters
Returns
|
protected helper_updateMapCellOptions() | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Helper method to update MapCellEditor options | ||||||||||||
Presentation
| ||||||||||||
Parameters
Returns
|
protected initCellEditorRenderer() | |||||||||
---|---|---|---|---|---|---|---|---|---|
Several default If you have a single field displayed in multiple columns and only want the field to be editable in one of them, then override this method and return null for column you don't want to be editable. Use This method works in conjuction with | |||||||||
Presentation
| |||||||||
Parameters
Returns |
protected isChanged() | |||||||||
---|---|---|---|---|---|---|---|---|---|
Method to compare if 2 passed objects contains the same value. This method is called before saving data in edit mode. Only changed rowData is included in the save. In insert mode, all newly-inserted rows are considered changed thus all of them are included in the save. | |||||||||
Presentation
| |||||||||
Parameters
Returns
|
protected onCommitEdit() | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
If user change a value in cell editor, this method is called. This is the place to put logic to modify the states of other cell editor, or to set some values to other fields. Please refer to 'helper_' methods of this class to get some handy functions. | ||||||||||||||||||
Presentation
| ||||||||||||||||||
Parameters
Returns
|
protected onStartEdit() | |||||||||
---|---|---|---|---|---|---|---|---|---|
Called upon selected row when table mode is edit or insert | |||||||||
Presentation
| |||||||||
Parameters
Returns
|
saveData() | |||||||||
---|---|---|---|---|---|---|---|---|---|
Save logic. This method must be overriden to enable save functionality. The returned data will be assigned to respective table row. So if there is data change in server such as generated If server api doesn't return the data, override The PanemuTableEditingController.afterSuccessfulSave` is called upon successful save. You can override it to display information dialog if required. | |||||||||
Presentation
| |||||||||
Parameters
Returns
|
showValidationError() | |||||||||
---|---|---|---|---|---|---|---|---|---|
Display validation error. By default it forward to | |||||||||
Presentation
| |||||||||
Parameters
Returns
|