Skip to Content
0

How to use css in Objectlistitem Title..??

Apr 27, 2017 at 06:21 AM

105

avatar image

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)

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

VIPLOVE KHUSHALANI Apr 27, 2017 at 07:53 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded