awa.ui.ForeignKeyInput Class
Extends Backbone.View
Defined in:
Module: awa.ui
/var/www/azaleahealth.com/branches/docs/source_repo/awa/resources/apps/js/awa/ui/ForeignKeyInput.js:6
Used to foreign key colums with a model
Constructor
awa.ui.ForeignKeyInput
(
-
options.model -
options.collection -
options.modelAttribute -
[options.subModelAttribute] -
[options.lookupView] -
[options.LookupView] -
[options.selectedModel] -
[options.allowRemove] -
[options.postSelect]
Parameters:
-
options.modelawa.mvc.Model -
options.collectionawa.mvc.Collection -
options.modelAttributeStringforeign key attribute of the model to bind to
-
[options.subModelAttribute]String optionalattribute that contains the linked model in the parent. If supplied, will be set on selection
-
[options.lookupView]awa.view.LookupView optionalLookupView to use if you do not want it to build from the collection
-
[options.LookupView]Constructor optionalLookupView constructor to use if you do not want it to build from the collection
-
[options.selectedModel]awa.mvc.Model optionalInitially selected model
-
[options.allowRemove]Boolean optionaldefault true
-
[options.postSelect]Function optional{model, success}