Module: table-row-editor

Generic row editor component

Source:

Example

<TableRowEditor :parent="this" :mutiRow="true" :rows="rows" />

Methods

(function) created()

Method created
Source:

(function) data()

Method data
Source:

(method) cancel()

Cancel the edit operation and revert to the original values

Source:

(method) close()

Close the form

Source:

(method) deleteRow()

delete the current row and adjust the editing row

Source:

(method) focus()

focus the first input field in the form

Source:

(method) handleIsA()

Handle the isA column

Source:

(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

Source:
Returns:
Type
Promise.<void>

(method) selectionUpdated(col)

Dropwdown selection updated

Parameters:
Name Type Description
col Object

The column object.

Source:

(method) showColInEdit(col) → {boolean}

Determines whether a column should be shown in edit mode.

Parameters:
Name Type Description
col Object

The column object.

Source:
Returns:
  • True if the column should be shown in edit mode, false otherwise.
Type
boolean

(function) mounted()

Initialize the component

Source:

(watcher) "parent.editingRow"()

Method "parent.editingRow"
Source:

(function) handler()

Method handler
Source:

(watcher) "rows.length"()

Method "rows.length"
Source:

(watcher) isARow()

Method isARow
Source:

(function) handler()

Method handler
Source: