cancel
Showing results for 
Search instead for 
Did you mean: 

How to use css in Objectlistitem Title..??

former_member187227
Participant
0 Kudos
1,028

Hi All,

I'm using SAPui5 Application. I want to display the values in Objectlistitem Title as two values. First value as bold second value as normal. Any possibilities to display the value.

Tried Code:

var oItems = new sap.m.ObjectListItem({ title:"{ApproverName}, {ApproverPosition}", type:"Active", firstStatus:[new sap.m.ObjectStatus({text:"{Status}"})], attributes:[new sap.m.ObjectAttribute({ text:"{ApproverComments}"}), new sap.m.ObjectAttribute({ text:"{path: 'Approved_DateTime', type: 'sap.ui.model.type.Date',formatOptions: {source: {pattern: 'yyyy-MM-ddTHH:mm:ss'},pattern: 'MMM dd,yyyy - HH:mm:ss'}}"}), ], });

Expected Output:

John, (Manager)

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member340030
Contributor
0 Kudos

Hi Vinothkumar T,

You can't do this as the title property is a single span item in the html rendering of the control which takes the title value as single text. You can't even use css to do that kind of display. Why can't you use customListItem an design your own list ..

thanks

Viplove