constructor of the class ManageSubcategoriesAndIndicators
tab from which the class is instantiated
the role when logged in: 'mdg', 'mus', 'com', 'syc'
checks whether all input elements have been populated can be used for creation and edits of subcategories and indicators
'subcategory' or 'indicator'
input-errors-detected or no-input-errors-detected
checks a string against a regex for subcategories AND indicators:
the string to be tested against the regex
whether testing for a subcategory or indicator name
isValid
disables or enables all user inputs
true = disable, false = enable
when the category dropdown in the Manage Indicators tab is changed:
when the category dropdown in the Manage Subcategories tab is changed:
when the subcategory dropdown in the Manage Indicators tab is changed:
logic to be executed when the config has finished loading
the config
when a unit is selected in the units dropdown, copy the unit into the unit text input
triggers when a new character is added to unit input
input change event
used for both tabs Manage Subcategories and Manage Indicators
populates the units dropdown with available units
creates or edits a subcategory creates or edits an indicator
the data to be sent to the server
saves the indicators TOC order
saves the subcategories TOC order
moves an item down in the indicators list
the click event
moves an item down in the subcategories list
the click event
moves an item up the subcategories list
the click event
moves an item up in the indicators list
the click event
triggered on click of Edit button (pen icon) copies the indicator name code, TOC text FR, TOC text EN into the input fields
click event, used to know which indicator was clicked
triggered on click of Edit button (pen icon) copies the subcategory code, TOC text FR, TOC text EN into the input fields
click event, used to know which subcategory was clicked
reads the inputs checks for indicator name validity builds dataObject calls server request function
reads the inputs checks for subcategory name validity builds dataObject calls server request function
ManageSubcategoriesAndIndicators class