WIP
This commit is contained in:
parent
9ed63ca5ba
commit
dbcc51c80d
6 changed files with 69 additions and 19 deletions
|
@ -13,10 +13,10 @@ export default Component.extend({
|
|||
selectedStrains: null,
|
||||
selectedCharacteristics: null,
|
||||
|
||||
updateStrains: function(selection) {
|
||||
this.set('selectedStrains', selection);
|
||||
this.attrs['update-strains'](this.get('selectedStrains'));
|
||||
},
|
||||
// updateStrains: function(selection) {
|
||||
// this.set('selectedStrains', selection);
|
||||
// this.attrs['update-strains'](this.get('selectedStrains'));
|
||||
// },
|
||||
|
||||
updateCharacteristics: function(selection) {
|
||||
this.set('selectedCharacteristics', selection);
|
||||
|
@ -57,5 +57,10 @@ export default Component.extend({
|
|||
deselectAllCharacteristics: function() {
|
||||
this.updateCharacteristics("");
|
||||
},
|
||||
|
||||
updateStrainSelection: function(selection) {
|
||||
this.set('selectedStrains', selection);
|
||||
this.attrs["update-strains"](selection);
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
|
@ -5,13 +5,13 @@
|
|||
<li>
|
||||
<label>Strains</label>
|
||||
{{
|
||||
select-2
|
||||
x-select
|
||||
listItems=strains
|
||||
nameAttr="fullNameMU"
|
||||
update=(action "updateStrainSelection")
|
||||
placeholder="Select one ore more strains"
|
||||
multiple=true
|
||||
content=strains
|
||||
value=selectedStrains
|
||||
optionValuePath="id"
|
||||
optionLabelPath="fullNameMU"
|
||||
placeholder="Select one or more strains"
|
||||
selected=selectedStrains
|
||||
}}
|
||||
</li>
|
||||
<li>
|
||||
|
|
Reference in a new issue