Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/components/MultiselectPicklist.component
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
type="String" required="true" />
<apex:attribute name="showUpDownButtons" description="Should Up/Down buttons be displayed or not."
type="Boolean" required="false" default="true"/>
<apex:attribute name="showAddRemoveText" description="Should add/remove text be displayed or not."
type="Boolean" required="false" default="true"/>

<apex:attribute name="leftOption"
description="Options list for left listbox." type="SelectOption[]"
Expand Down Expand Up @@ -54,7 +56,7 @@
</select>
</td>
<td class="buttonCell">
<apex:outputPanel layout="block" styleClass="text">Add</apex:outputPanel>
<apex:outputPanel layout="block" styleClass="text" rendered="{!showAddRemoveText}">Add</apex:outputPanel>
<apex:outputPanel layout="block" styleClass="text">
<apex:outputLink value="javascript:moveSelectedOptions('{!$Component.multiselectPanel}:leftList',
'{!$Component.multiselectPanel}:rightList', '{!$Component.leftHidden}',
Expand All @@ -64,6 +66,10 @@
title="Add" />
</apex:outputLink>
</apex:outputPanel>
<!-- Additional output panel and space for standard SFDC look -->
<apex:outputPanel layout="block" rendered="{!NOT(showAddRemoveText)}">
<BR />
</apex:outputPanel>
<apex:outputPanel layout="block" styleClass="text">
<apex:outputLink value="javascript:moveSelectedOptions('{!$Component.multiselectPanel}:rightList',
'{!$Component.multiselectPanel}:leftList', '{!$Component.rightHidden}',
Expand All @@ -73,7 +79,7 @@
styleClass="leftArrowIcon" title="Remove" />
</apex:outputLink>
</apex:outputPanel>
<apex:outputPanel layout="block" styleClass="duelingText">Remove</apex:outputPanel>
<apex:outputPanel layout="block" styleClass="duelingText" rendered="{!showAddRemoveText}">Remove</apex:outputPanel>
</td>
<td class="selectCell">
<apex:outputPanel layout="block" styleClass="selectTitle">
Expand Down