cancel
Showing results for 
Search instead for 
Did you mean: 

dynamic color change for info in standard list item

Former Member
0 Kudos

Hi all,

I want to change the color of the info in standard list item depending on values.If {Stats} is NEW it should show info in green for CLOSED blue.

I have written code as below

<StandardListItem

   type="Active"

   title="{Aufnr}"

    info="{Stats}"

    infoState="Warning"

/>

Accepted Solutions (1)

Accepted Solutions (1)

former_member182862
Active Contributor
0 Kudos

HI Sham

will this help?

JS Bin - Collaborative JavaScript Debugging

Thanks

-D

saivellanki
Active Contributor
0 Kudos

Perfect Dennis!

Regards,

Sai Vellanki.

Answers (1)

Answers (1)

former_member183518
Active Participant
0 Kudos

You had asked a very similar question earlier ! Jus refer to the same.

http://scn.sap.com/thread/3810391

List of available States.

https://sapui5.hana.ondemand.com/docs/api/symbols/sap.ui.core.ValueState.html