Class: module:Populator

module:Populator()

Special functionality that could be used to populate form based on passed data or fill elements with HTML according to passed elements.

Constructor

new module:Populator()

Source:

Methods

(static) populateDOM(arrayOfValuesWithElementSelectors)

Populate DOM elements
Parameters:
Name Type Description
arrayOfValuesWithElementSelectors Array Array of values that will be loop for, every object in array should contain {html:
, selector: elementSelector}. [REQUIRED]
Source:

(static) populateForm(arrayOfValues, formSelector)

Populate form function
Parameters:
Name Type Description
arrayOfValues Array Array of values that will be loop for and decomosed to [key,value] of each obj . [REQUIRED]
formSelector String Form selector that will be used to populate form. [REQUIRED]
Source: