awa.mvc.ModelAttributeTypes.listValue Class
Defined in:
Module: awa.mvc.ModelAttributeTypes
/var/www/azaleahealth.com/branches/docs/source_repo/awa/resources/apps/js/awa/mvc/ModelAttributeTypes.js:73
Attribute type for foreign keys. Supports a 'collection' property for a source collection. The collection can be the collection itself or function that returns a collection. Though arrays and objects are supported, it is recommended you use an awa.mvc.Collection Certain inputs will NOT work unless you use awa.mvc.Collection
pat_phy_id: {
name: "Rendering Provider",
rules: {
required: true
},
collection: function(){
return awa.clientModel.get('cli_rendering_providers');
}
},
listValue types provide a displayMethod and will attempt to use the linked model's displayName.