Page 1 of 1

Array to List Mapping With Adding Custom String

Posted: Mon Sep 07, 2015 11:00 am
by taucher

Hello,

I get a list of houses with prices from my rest service. The price and the price type($,€) are in different columns. When mapping to UI, how can i add the type at the end of the price label. ( Need to check if it is $, then add $. For € is needed also)

Thank you,


Array to List Mapping With Adding Custom String

Posted: Mon Sep 07, 2015 8:31 pm
by Serhii Kulibaba

Hello,

Please add JS for the mapping $-listItem:

$(element).find("[name=priceLabel]").text(value.price + value.type);

here priceLabel - label with the price value


Array to List Mapping With Adding Custom String

Posted: Tue Sep 08, 2015 6:39 am
by taucher

Hello Sergiy,

Thank you so much! Done.

Regards,