awa.mvc.LookupView Class
/var/www/azaleahealth.com/branches/docs/source_repo/awa/resources/apps/js/awa/mvc/LookupView.js:11
Extending this view creates a generic popup containing a ListView (e.g. PatientsListView) used for searching then selecting an item from the list. The result is easy lookup to retrieve a model for that item.
Constructor
awa.mvc.LookupView
-
[options.success] -
[options.cancel] -
[options.filterCollection] -
[options.singleResultPassThrough]
Parameters:
-
[options.success]Function optionalFunction that is called when an item is selected.
-
[options.cancel]Function optionalFunction that is called when lookup is cancelled.
-
[options.filterCollection]awa.mvc.Collection optional -
[options.singleResultPassThrough]Boolean optional1st parameter is an object with property model as the selected model
Item Index
Methods
Methods
bindToModel
-
[model]
Parameters:
-
[model]awa.mvc.Model | Backbone.Model optionalModel to bind to
Returns:
destroy
()
awa.mvc.View
Returns:
doChildrenLayouts
()
Undefined
Returns:
doLayout
()
Undefined
Returns:
getWidget
()
Array
Returns:
onRendered
-
callback -
context
Parameters:
-
callbackFunctionCallback -
contextObjectDefines scope of callback
Returns:
popup
-
[createArgs]
Parameters:
-
[createArgs]Object optionalArguments object
-
[controlsOnTop]Boolean optionaldefaults to false
-
[x]Integer optionaldefaults to false
-
[y]Integer optionaldefaults to false
-
Returns:
Returns the encasing PopupView
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:
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
controlsView
awa.mvc.ControlsView
reference to this contentsView's main controls view. Subsequent controls view will have to be managed another way.
Default: undefined
globalKeys
Object
Default: undefined
keys
Object
Default: undefined
ModelClass
Constructor
provide model class to derive information from and to fill data
Default: undefined
refreshOnReplace
Boolean
Default: true
rendered
Boolean
Default: false
title
Strin
Default: "View"
tpl
Function
Default: undefined
tplArgs
Object
Default: undefined
viewDescription
String
Description for use of view. May also explain a concept. Intended for the user. If set, the content view rendering process will decide where to place his content if needed.
Default: undefined