StackView.ViewPort Class
Defined in:
_views\StackView.js:1
Base class for all StackView components. StackView allows for dynamic changes of elements (show/hide) and it works with the Backbone framework, thus allowing for view control.
Constructor
StackView.ViewPort
()
Returns:
none instead instantiate derived classes
Item Index
Methods
_parseView
(
-
i_view
If view was given as an ID string, find its matching Backbone > View
Parameters:
-
i_view
Object
addView
(
String
-
i_view
Add a backbone view so we can control its display mode via one of the derived classes
Parameters:
-
i_view
Objectadd a backbone view to control
Returns:
String:
stack view id added
getViewByID
(
Object
-
i_id
Find a registered backbone view by its id or cid
Parameters:
-
i_id
String
Returns:
Object:
view object retrieved
getViews
()
Object
Get all registered views
Returns:
Object:
registered views
initialize
()
Constructor
selectView
(
-
i_view
Select a view to present in the DOM, implementation varies per derived class
Parameters:
-
i_view
Object