Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

Conditional background color for Table's/Lits's item in XMLView.

$
0
0

Hi, i have a list, let's say it is similar to the list in this post: SAPwebIDE MD/MMD templates unpleasant differences (bound List/Table doesn't work properly in MMD Detail view, but works OK in MD Detail view)

 

 

<List xmlns="sap.m" id="idList" inset="false" visible="true" headerText="" headerDesign="Standard" footerText="" mode="None" width="100%" includeItemInSelection="false" showUnread="false" noDataText="" showNoData="true" enableBusyIndicator="true" modeAnimationOn="true" showSeparators="All" swipeDirection="Both" growing="false" growingThreshold="20" growingTriggerText="" growingScrollToLoad="false" rememberSelections="true" backgroundDesign="Solid" itemPress=""
items="{path:'Order_Details'}" >    <items>        <ColumnListItem type="Navigation" counter="0">            <cells>                <Text text="{OrderID}"/>                <ObjectIdentifier title="{ProductID}" text="{UnitPrice}">                </ObjectIdentifier>            </cells>        </ColumnListItem>    </items>    <columns>        <Column minScreenWidth="tablet">            <header>                <Text text="OrderID" maxLines="0"/>            </header>        </Column>        <Column minScreenWidth="tablet">            <header>                <Text text="ProductID / UnitPrice" maxLines="0"/>            </header>        </Column>    </columns></List>

Looking like that:

 

B1-01.png

 

How can i conditionally change background color (or style) of list item (row or cell, whatever)?

 

 

What i have already tried:

 

What else should i try?

 

Best Regards, Ilia.


Viewing all articles
Browse latest Browse all 6178

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>