Generic row editor component
Example
<TableRowEditor :parent="this" :mutiRow="true" :rows="rows" />
Methods
(function) created()
Method created
(function) data()
Method data
(method) cancel()
Cancel the edit operation and revert to the original values
(method) close()
Close the form
(method) deleteRow()
delete the current row and adjust the editing row
(method) focus()
focus the first input field in the form
(method) handleIsA()
Handle the isA column
(method) save() → {Promise.<void>}
Save the current row and adjust the editing row if this is a isA row, save the isA row as well
Returns:
- Type
- Promise.<void>
(method) selectionUpdated(col)
Dropwdown selection updated
Parameters:
Name | Type | Description |
---|---|---|
col |
Object | The column object. |
(method) showColInEdit(col) → {boolean}
Determines whether a column should be shown in edit mode.
Parameters:
Name | Type | Description |
---|---|---|
col |
Object | The column object. |
Returns:
- True if the column should be shown in edit mode, false otherwise.
- Type
- boolean
(function) mounted()
Initialize the component
(watcher) "parent.editingRow"()
Method "parent.editingRow"
(function) handler()
Method handler
(watcher) "rows.length"()
Method "rows.length"
(watcher) isARow()
Method isARow
(function) handler()
Method handler