app.selection.component.js
Functions
fillSelector(type, values, verificationFunction)
Fill selector with values and bind verification function
Param | Type | Description |
---|---|---|
type | type | name of the selector |
values | type | values |
verificationFunction | type | values |
loadDataFromStorage(select_item, selectorId)
Load data of the selector from storage
Param | Type | Description |
---|---|---|
select_item | M.FormSelect | Select element |
selectorId | string | id of the selector |
storeInLocalStorage(value, selectorId)
Store data of the selector into storage
Param | Type | Description |
---|---|---|
value | string | value to store |
selectorId | string | id of the selector |
removeValidButtonAttribute(attributeName)
Remove an attribute to valid button
Param | Type | Description |
---|---|---|
attributeName | string | Name of the attribute |
setValidButtonDisabledAttribute(bool, attributeName)
Change disabled attribute in validation button
Param | Type | Description |
---|---|---|
bool | boolean | value of disabled attribute |
attributeName | string | Name of the attribute |
reinitSelector(selector)
Reinit selector options, remove all options except the first one.
Summary: Remove all options in the dom except the first because in our case this first option is used as a placeholder for the moment
Param | Type | Description |
---|---|---|
selector | M.FormSelect | selector to clean |
resetChildSelector(childName)
Reset child
Summary: In our workflow reset a child selector has to reinit a child ONLY if the child is already visible
Param | Type | Description |
---|---|---|
childName | string | child name selector |