ConfigurationGrid module
Level: advanced
ConfigurationGrid is a module that provides the management logic for the "Configuration grid" control. Implemented in the Terrasoft.controls.ConfigurationGrid class of the UIv2 package. The Terrasoft.controls.ConfigurationGrid class inherits from the Terrasoft.Grid class.
Methods
init()
Initializes the component. Subscribes to events.
activateRow(id)
Selects a row and adds edit elements.
Parameters
{String|Number} id | The list row ID. |
deactivateRow(id)
Deselects a row and deletes edit elements.
Parameters
{String|Number} id | The list row ID. |
formatCellContent(cell, data, column, link)
Formats the row cell data.
Parameters
cell | Cell. |
data | Data. |
column | Cell configuration. |
link | Link. |
onUpdateItem(item)
Record’s update event handler.
Parameters
{Terrasoft.BaseViewModel} item | Collection item. |
onDestroy(clear)
Destroys the list and its components.
Parameters
clear | Clears the list and its components. |