on 2017 Apr 27 7:21 AM
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)
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
75 | |
21 | |
8 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.