-
Notifications
You must be signed in to change notification settings - Fork 0
listselector
Justin Drew edited this page Jul 11, 2017
·
1 revision
This component manages which list is displayed. It also contains the {{list-controls}}
component.
-
location
: This takes an attribute which holds the currently selected location value (All, North, South, Central). This should not be the user friendly name of the location, but rather the one that is used to send to the data services. -
model
: This should be a list of all systems currently loaded
-
select
: This action passes back a single system record to set as the selected system -
updateLocation
: This action should accept a value for location and then set it to the attribute being passed intolocation
. For an example of the implementation, see theactions
hash in themain.js
controller file.
Example:
{{list-selector
location=location
model=model
select="select"
updateLocation="updateLocation"
}}