Extends
- EventDispatcher
Constructor
new ViewStack(_id, _route, _parentId)
ViewStack maintains history of Views.
Parameters:
Name | Type | Description |
---|---|---|
_id |
string | ViewStack ID |
_route |
string | Path Route Name |
_parentId |
string | ViewStack ParentID |
- Source:
Methods
Name | Description |
---|---|
destroy | Destroy Method used to cleanup viewstack resources Call by ViewNavigator to destroy view Remove Event Handlers, Make Properties null, Remove View Components and its reference. |
getActiveViewId | Returns Active View Id |
getViewStackElement | Returns Viewstack DOMElement |
initViewStack | Initialize ViewStack , Implement by Subclass |
popViewElement | Navigator will call view destroy method which will remove View DOM Element, EventListners reference to DOM Element, Properties, Finally Object null to make garbage collected |
pushViewElement | Push View in Viewstack |
render | Render ViewStack DOMElement contents |
renderViewStackContent |
destroy()
Destroy Method used to cleanup viewstack resources
Call by ViewNavigator to destroy view
Remove Event Handlers, Make Properties null,
Remove View Components and its reference.
- Source:
getActiveViewId() → {string}
Returns Active View Id
- Source:
Returns:
ViewID
- Type
- string
getViewStackElement() → {string}
Returns Viewstack DOMElement
- Source:
Returns:
DOM ELement
- Type
- string
initViewStack()
Initialize ViewStack , Implement by Subclass
- Source:
popViewElement()
Navigator will call view destroy method which will remove
View DOM Element, EventListners reference to DOM Element,
Properties, Finally Object null to make garbage collected
- Source:
pushViewElement(_viewId, _views)
Push View in Viewstack
Parameters:
Name | Type | Description |
---|---|---|
_viewId |
string | |
_views |
array |
- Source:
render()
Render ViewStack DOMElement contents
- Source:
renderViewStackContent()
- Source: