Skip to content

Commit

Permalink
Update DualSelect.cmp
Browse files Browse the repository at this point in the history
  • Loading branch information
rapsacnz authored Sep 14, 2017
1 parent 1a446e9 commit 2908a1b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/aura/DualSelect/DualSelect.cmp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<aura:component >

<aura:attribute name="fieldName" type="String" default="Values"/>
<aura:attribute name="leftValues" type="Object[]" default="[]"/>
<aura:attribute name="rightValues" type="Object[]" default="[]"/>

Expand All @@ -9,7 +10,7 @@
<div class="slds-assistive-text" id="drag-live-region" aria-live="assertive"></div>
<div class="slds-assistive-text" id="option-drag-label">Press space bar when on an item, to move it within the list. CMD plus left and right arrow keys, to move items between lists.</div>

<c:OrderedList aura:id="left" fieldName="Opportunity Stage" values="{#v.leftValues}" position="left" />
<c:OrderedList aura:id="left" fieldName="{!v.fieldName}" values="{!v.leftValues}" position="left" />

<div class="slds-grid slds-grid--vertical">
<button class="slds-button slds-button--icon-container slds-button--icon-small" title="Right" onclick="{!c.moveRightToLeft}">
Expand All @@ -22,7 +23,7 @@
</button>
</div>

<c:OrderedList aura:id="right" fieldName="Selected Opportunity Stage Values" values="{#v.rightValues}" showUpDown="true" position="right"/>
<c:OrderedList aura:id="right" fieldName="{! 'Selected ' + v.fieldName + ' Values'}" values="{!v.rightValues}" showUpDown="true" position="right"/>

</div>
</div>
Expand Down

0 comments on commit 2908a1b

Please sign in to comment.