I was just finishing my project and wanted to add a icon into each of the segment rows. I am using a row template and after placing the icon in the row template, it is not being shown in the preview mode. I am using IRIS API to populate the segment data.
Is there any way to use icons in segment rows? I can't find any way around that. Any help would be appreciated π
If your icon is from Foundry response, then you may refer to:
imgProduct: response.products[0].thumbnailImage
If your icon is from local files (eg. C:\workspace\projectname\resources\common\ratings_star_5.png), then you may refer to:
imgReview: {
isVisible : pRatingExist,
src: "ratings_star_" + rating + ".png"
},
For example:
var productDetail = [];
var productObject = {
lblProductName: response.products[0].name,
imgReview: {
isVisible : pRatingExist,
src: "ratings_star_" + rating + ".png"
},
imgProduct: response.products[0].thumbnailImage
};
productDetail.push(productObject);
this.view.segProductDetail.setData(productDetail);