new DOMView()
Methods
(async) evaluateValueInScope(bindingName, scope) → {undefined}
- Description:
Convenience method that evaluates a value in scope
- Source:
Parameters:
Name | Type | Description |
---|---|---|
bindingName |
type | |
scope |
type |
Returns:
- Type
- undefined
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>
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>
getFilteredPath()
- Description:
Gets an ordered list from the scope mapped by the mapper function given
- Source:
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>
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>
getTemplatePath(viewElement) → {Array.<string>}
- Description:
Gets an ordered list of template elements 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>
(static) getBindingFromScope(bindingName, scope) → {undefined|DOMView.getBindingFromScope.scope}
- Description:
Gets the most specific binding with a value for a name in the scope
- Source:
Parameters:
Name | Type | Description |
---|---|---|
bindingName |
type | |
scope |
type |
Returns:
- Type
- undefined | DOMView.getBindingFromScope.scope