OBaseTableCellEditor
OBaseTableCellEditor
Properties
Name | Type | Description |
---|---|---|
column | string | Name of the column |
table | OTableComponent | Reference to the component OTableComponent |
tableColumn | property | Reference to the component OTableColumnComponent |
tableColumnAttr | property | The attr from the component OTableColumnComponent |
inputRef | ElementRef | The element reference of the input. An elementRef is backed by a render-specific element. In the browser, this is usually a DOM element. |
rowData | any | Table row data |
formControl | FormControl | Reference to form field control instance |
formGroup | FormGroup | Reference to form group instance |
Inputs
Name | Since | Description | Default |
---|---|---|---|
enabled no | false | yes | true |
| Indicates whether or not the field is enabled | yes |
label string |
| The placeholder text form a editor. |
|
required no | false | yes | true |
| Indicates whether or not required. | no |
show-notification-on-edit no | false | yes | true |
| Indicates whether or not to show a toast indicating the succesfull update | no |
show-placeholder no | false | yes | true |
| Indicates whether or not to show placeholder in form control. | no |
update-record-on-edit no | false | yes | true |
| Indicates whether or not to update cell data in server after it edition ends | yes |
Outputs
Name | Since | Description |
---|---|---|
editionCancelled | Event triggered when component input is canceled. | |
editionCommitted | Event triggered when component input is committed. | |
editionStarted | Event triggered when component input element started. | |
onPostUpdateRecord | Event triggered after component record is succesfully updated. |
Methods
commitEdition |
---|
Commit edition |
createFormControl |
---|
Create form field control if not exists |
endEdition |
---|
End edition in the editor with the ability to skip or save changes |
getCellData |
---|
This default method returns the value of the column as *a string* |
Returns |
string |
hasError |
---|
Whether the form-field has errors |
Returns |
boolean |
initialize |
---|
Initialize the cell editor of the column |
registerEditor |
---|
Register editor on the table |
resolveValidators |
---|
Resolve validators* |
Returns |
ValidatorFn[] |
startEdition |
---|
Start edition with given the data |