DOMView

DOMView

new DOMView()

Source:

Methods

getConceptPath(viewElement) → {Array.<string>}

Description:
  • Gets an ordered list of concepts instances involved in rendering this view element
Source:
Parameters:
Name Type Description
viewElement HTMLElement
Returns:
Type
Array.<string>

getLookupNameFromAttribute(templateElement, attributeName) → {undefined}

Description:
  • Returns a value lookup name if this attribute is on the form \{name\}, null if the attribute does not exist
Source:
Parameters:
Name Type Description
templateElement HTMLElement
attributeName string
Returns:
Type
undefined

getPropertyPath(viewElement) → {Array.<string>}

Description:
  • Gets an ordered list of properties involved in rendering this view element
Source:
Parameters:
Name Type Description
viewElement HTMLElement
Returns:
Type
Array.<string>

(async) insertFromTemplateElement(templateElement, scope) → {Promise.<Array.<Node>>}

Description:
  • Returns element with evaluation of values for a single template element, can return multiple
Source:
Parameters:
Name Type Description
templateElement HTMLElement
scope Array.<any>
Returns:
A list of the immediate nodes that were appended to currentViewElement
Type
Promise.<Array.<Node>>

(async) rebuildView(templateElement) → {Promise.<void>}

Description:
  • Reconstructs a view based on the template element(s) currently loaded
Source:
Parameters:
Name Type Description
templateElement HTMLElement
Returns:
Type
Promise.<void>