MainView Class
Base shared view for MainView sidebar and fullscreen.
Item Index
Methods
Methods
_bindSearchWidgetEvents
()
private
Bind events watching for search widget changes.
_renderSearchWidget
-
node
Render out the main search widget and controls shared across various views.
Parameters:
-
nodeNodethe node to render into.
_searchChanged
-
ev
When the search term or filter is changed, fetch new data and redraw.
Parameters:
-
evEventevent object from catching changes.
apiFailure
-
data -
request
Shared method to generate a message to the user based on a bad api call.
Parameters:
-
dataObjectthe json decoded response text.
-
requestObjectthe original io_request object for debugging.
destructor
()
Destroy this view and clear from the dom world.
initializer
-
cfg
General YUI initializer.
Parameters:
-
cfgObjectconfiguration object.
isFullscreen
()
Bool
Check if this view is the fullscreen version to help aid us in template work.
Returns:
Attributes
_fullscreenTarget
String
When we click the fullscreen toggle UX widget, what url do we route to. We have to dump this into the template because we can't dynamically showView/navigate from here.
Views extending this should implement the url path.
Default: ''
charmID
String
If this view is called from the point of view of a specific charmId it'll be set here.
Default: undefined
store
Charmworld0
An instance of the Charmworld API object to hit for any data that needs fetching.
Default: undefined
