Skip to Content
1
Aug 19, 2013 at 07:22 AM

Formatter for sap.m.Label

874 Views

Hi,

I'm using a sap.m.CustomListItem whose content is sap.m.Label and the code looks like:

 var listItem = new sap.m.CustomListItem({              type: sap.m.ListType.Active,              content: new sap.m.Label({                      text: "{content/m:properties/d:OrderId}",              }); });

But I want to be able to manipulate the value of OrderId before assigning it to the label's text. Is there a way to pass something like a formatter to a sap.m.Label?

Thanks!

Marc