Details
-
Type: Improvement
-
Status: Open
-
Priority: Major
-
Resolution: Unresolved
-
Affects Version/s: EE-2.0.0.GA, 2.0.2, EE-1.8.2.GA_P03
-
Fix Version/s: None
-
Component/s: ICE-Components
-
Labels:None
-
Environment:All
Description
Feature Request: It would be nice to be able to style the rows displayed for the selectInputText options in a similar way to the rows in a dataTable with alternating even/odd style.
Currently there is only the ability to only style each row the same and have the selected row style differently.
Currently there is only the ability to only style each row the same and have the selected row style differently.
Activity
Arran Mccullough
created issue -
Arran Mccullough
made changes -
Field | Original Value | New Value |
---|---|---|
Salesforce Case | [5007000000Gxbnj] |
Ken Fyten
made changes -
Summary | Add capability to style the different rows of options displayed for the selectInpuText component | Add capability to style the different rows of options displayed for the selectInputText component |
Assignee Priority | P2 | |
Assignee | Adnan Durrani [ adnan.durrani ] |
Adnan Durrani
made changes -
Assignee | Adnan Durrani [ adnan.durrani ] | Ken Fyten [ ken.fyten ] |
Ken Fyten
made changes -
Assignee | Ken Fyten [ ken.fyten ] | |
Assignee Priority | P2 [ 10011 ] |
Yes, it can be done at app level when using facet.
In order to achieve this, an index should be added to the bean, and that index has to be used in a styleClass of root element.
For example:
<style>
{ background-color:red; }.evenClass
</style>
<ice:selectInputText
{selectInputText.cityMatchPossibilities}listVar="city"
listValue="#
">
<f:facet name="selectInputText">
{(city.index % 2 == 0) ? evenClass : oddClass }<ice:panelGrid columns="3" styleClass="#
"
{city.city},stateCol,zipCol">columnClasses="#
<ice:outputText id="AutoCmpCty" value="#{city.city}
"/>
{city.state}<ice:outputText id="AutoCmpSt" value="#
"/>
{city.zip}<ice:outputText id="AutoCmpZip" value="#
"/>
</ice:panelGrid>
</f:facet>
</ice:selectInputText>