Skip to main content
Version: 8.1

ConfigurationGridUtilities module

Level: advanced

ConfigurationGridUtilities is a module that contains methods that initialize the list row view model, handle the active record actions, and handle hotkeys. Implemented in the Terrasoft.configuration.mixins.ConfigurationGridUtilities class of the Uiv2 package.

Properties

currentActiveColumnName String

The name of the currently selected column.

columnsConfig String

Column configuration.

systemColumns Array

Collection of system column names.

Methods

onActiveRowAction(buttonTag, primaryColumnValue)

Handles the active record’s action click event.

Parameters

{String} buttonTag

Tag of the selected action.

{String} primaryColumnValue

ID of the active record.

activeRowSaved(row, callback, scope)

Handles the record save event.

Parameters

row

List row.

[callback]

The callback function.

scope

The scope of the callback function call.

initActiveRowKeyMap(keyMap)

Subscribes to active row’s button click events.

Parameters

keyMap

Description of events.

getCellControlsConfig(entitySchemaColumn)

Returns the configuration of the list cell’s edit elements.

Parameters

{Terrasoft.EntitySchemaColumn} entitySchemaColumn

List cell column.

copyRow(recordId)

Copies and adds a record to the list.

Parameters

{String} recordId

ID of the record to copy.

initEditableGridRowViewModel(callback, scope)

Initializes classes of the collection items from the list to edit.

Parameters

callback

The callback function.

scope

The scope of the callback function call.

saveRowChanges(row, callback, scope)

Saves the record.

Parameters

row

List row.

[callback]

The callback function.

[scope]

The scope of the callback function call.