Class: ElementUtils

ElementUtils()

new ElementUtils()

Core UI Template Utility Class Templates for View, ViewNavigator, ViewStack, Component, Container
Source:

Methods

Name Description
component Find Component DOM Element by ComponentID
constructComponentBaseElement Creates Component Base DOM Element by ComponentID
constructContainerBaseElement Creates Container Base DOM Element by ContainerID
constructNavigatorBaseElement Creates ViewNavigator Base DOM Element by ViewNavigatorID
constructViewBaseElement Creates View Base DOM Element by ViewID
constructViewStackBaseElement Creates ViewStack Base DOM Element by ViewStackID
container Find Container DOM Element by ContainerID
generateComponentId Generate Unique Component Instance ID
generateContainerId Generate Unique Container Instance ID
hideElement Hide DOM Element
isVisible Check if DOM Element is visible
showElement Show DOM Element
view Find View DOM Element by ViewID
viewNavigator Find ViewNavigator DOM Element by ViewNavigatorID
viewStack Find ViewStack DOM Element by ViewStackID


(static) component(_componentId) → {string}

Find Component DOM Element by ComponentID
Parameters:
Name Type Description
_componentId string
Source:
Returns:
Component DOM Element with ".vjs-component" css class
Type
string

(static) constructComponentBaseElement(_componentId) → {string}

Creates Component Base DOM Element by ComponentID
Parameters:
Name Type Description
_componentId string
Source:
Returns:
Component DOM Element with ".vjs-component" css class
Type
string

(static) constructContainerBaseElement(_containerId) → {string}

Creates Container Base DOM Element by ContainerID
Parameters:
Name Type Description
_containerId string
Source:
Returns:
Container DOM Element with ".vjs-container" css class
Type
string

(static) constructNavigatorBaseElement(_navigatorId) → {string}

Creates ViewNavigator Base DOM Element by ViewNavigatorID
Parameters:
Name Type Description
_navigatorId string
Source:
Returns:
ViewNavigator DOM Element with ".vjs-viewnavigator" css class
Type
string

(static) constructViewBaseElement(_viewId) → {string}

Creates View Base DOM Element by ViewID
Parameters:
Name Type Description
_viewId string
Source:
Returns:
View DOM Element with ".vjs-view" css class
Type
string

(static) constructViewStackBaseElement(_viewStackId) → {string}

Creates ViewStack Base DOM Element by ViewStackID
Parameters:
Name Type Description
_viewStackId string
Source:
Returns:
ViewStack DOM Element with ".vjs-viewstack" css class
Type
string

(static) container(_containerId) → {string}

Find Container DOM Element by ContainerID
Parameters:
Name Type Description
_containerId string
Source:
Returns:
Container DOM Element with ".vjs-container" css class
Type
string

(static) generateComponentId() → {string}

Generate Unique Component Instance ID
Source:
Returns:
Type
string

(static) generateContainerId() → {string}

Generate Unique Container Instance ID
Source:
Returns:
Type
string

(static) hideElement(_el)

Hide DOM Element
Parameters:
Name Type Description
_el string DOM Element
Source:

(static) isVisible(_el) → {Boolean}

Check if DOM Element is visible
Parameters:
Name Type Description
_el string DOM Element
Source:
Returns:
Type
Boolean

(static) showElement(_el)

Show DOM Element
Parameters:
Name Type Description
_el string DOM Element
Source:

(static) view(_viewId) → {string}

Find View DOM Element by ViewID
Parameters:
Name Type Description
_viewId string
Source:
Returns:
View DOM Element with ".vjs-view" css class
Type
string

(static) viewNavigator(_viewNavId) → {string}

Find ViewNavigator DOM Element by ViewNavigatorID
Parameters:
Name Type Description
_viewNavId string
Source:
Returns:
ViewNavigator DOM Element with ".vjs-viewnavigator" css class
Type
string

(static) viewStack(_viewStackId) → {string}

Find ViewStack DOM Element by ViewStackID
Parameters:
Name Type Description
_viewStackId string
Source:
Returns:
ViewStack DOM Element with ".vjs-viewstack" css class
Type
string