A mixin object containing methods for table editing
- Source:
Methods
(function) data()
- Source:
(method) addRow()
Adds a new row to the table for editing.
- Source:
(method) closeAllOverlays()
Close all overlays
- Source:
(method) closeOverlay()
Close the overlay for editing a cell
- Source:
(method) deleteRow(row)
Deletes a row from the table.
Parameters:
Name | Type | Description |
---|---|---|
row |
Object | The row to be deleted. |
- Source:
(method) editRow(row)
Edits a row in the table.
Parameters:
Name | Type | Description |
---|---|---|
row |
Object | The row to be edited. |
- Source:
(method) editedItemChanged()
The edited item has changed
- Source:
(method) findLookupValue(value, tableName)
Finds display value for a lookup value in lookup table
Parameters:
Name | Type | Description |
---|---|---|
value |
* | |
tableName |
* |
- Source:
Returns:
display value for the lookup value in the lookup table
(method) loadLookups() → {Promise.<void>}
Loads the lookup values for the columns in the table.
- Source:
Returns:
A promise that resolves when the lookup values are loaded.
- Type
- Promise.<void>
(method) rowToObject(row) → {Object}
Converts a row from the table to an object.
Parameters:
Name | Type | Description |
---|---|---|
row |
Array | The row to convert. |
- Source:
Returns:
- The converted object.
- Type
- Object
(method) saveRow()
- Source:
(method) saveRows()
Saves the edited rows to the database.
- Source:
(method) selectionUpdated(value, col)
Selection in popup table has been updated
Parameters:
Name | Type | Description |
---|---|---|
value |
* | |
col |
* |
- Source:
(method) showColInEdit(col) → {boolean}
Determines whether a column should be shown in table mode.
Parameters:
Name | Type | Description |
---|---|---|
col |
Object | The column object. |
- Source:
Returns:
- True if the column should be shown in table mode, false otherwise.
- Type
- boolean
(method) showOverlay(ref, col, props)
Show the overlay for editing a cell
Parameters:
Name | Type | Description |
---|---|---|
ref |
* | |
col |
* | |
props |
* |
- Source:
(method) undoChanges()
Undoes the changes made to the edited row and refreshes the table.
- Source:
(method) updateRow(props)
Updates a row in the table with the provided properties. Invoked from popup.
Parameters:
Name | Type | Description |
---|---|---|
props |
Object | The properties to update in the row. |
- Source:
(async, function) saveRow() → {Promise.<void>}
Saves the edited row to the table.
- Source:
Returns:
A Promise that resolves when the row is saved.
- Type
- Promise.<void>