Skip to Content

How to use css in Objectlistitem Title..??

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)

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Apr 27, 2017 at 07:53 AM

    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

    Add comment
    10|10000 characters needed characters exceeded