awa.mvc.ContentsListView Class
/var/www/azaleahealth.com/branches/docs/source_repo/awa/resources/apps/js/awa/mvc/ContentsListView.js:9
The ContentsListView is a more focused Contents view intended for grids and collections. Majority of options that work with {awa.ui.CollectionGrid} will also work here.
Constructor
awa.mvc.ContentsListView
-
options.collection
Parameters:
-
options.collectionawa.mvc.CollectionCollection to use with grid
Item Index
Methods
Methods
bindToModel
-
[model]
Parameters:
-
[model]awa.mvc.Model | Backbone.Model optionalModel to bind to
Returns:
createPageControlsView
()
awa.mvc.View
calls createPageControlsView on the grid and returns the results
Returns:
controls view for contents list
destroy
()
awa.mvc.View
Returns:
doChildrenLayouts
()
Undefined
Returns:
doLayout
()
Undefined
Returns:
getWidget
()
Array
Returns:
onExport
()
Undefined
Standard event. Calls requestExport on the collection provided to the view. Handles download of file. may also allow for format selection in the future. Note that you must provide a way for the user to call this (i.e. controls view args, data-events, etc).
Returns:
onExport
-
event
Standard event for filter widgets. This method will attempt to pull data from the widget and set as a collection filter Note that you must provide a way for the user to call this (i.e. controls view args, data-events, etc).
Parameters:
-
eventHTMLEventHTML Event object
Returns:
onRendered
-
callback -
context
Parameters:
-
callbackFunctionCallback -
contextObjectDefines scope of callback
Returns:
refresh
()
awa.mvc.View
Returns:
render
()
Undefined
Returns:
requestChange
-
callback
Parameters:
-
callbackFunctionfunction to call when you have determined if the view can close or not. If it can close, return an object with property 'success' set to 1.
Returns:
requestClose
-
callback
Parameters:
-
callbackFunctionfunction to call when you have determined if the view can close or not. If it can close, return an object with property 'success' set to 1.
Returns:
setElement
-
element -
[delegate]
Parameters:
-
elementJquery.SelectorJquery selector -
[delegate]? optional?
Returns:
title
()
String
Generate title from ModelClass if provided
Returns:
title for view
triggerRendered
-
args
Parameters:
-
argsObjectparameter to emit
Returns:
viewOptions
()
Array
Returns:
Properties
__parent__
View
Default: undefined
className
Boolean | Function
Default: "awa-mvc-View"
closeOnReplace
Boolean
Default: false
globalKeys
Object
Default: undefined
keys
Object
Default: undefined
refreshOnReplace
Boolean
Default: true
rendered
Boolean
Default: false
title
Strin
Default: "View"
tpl
Function
Default: undefined
tplArgs
Object
Default: undefined