I want to add a different tooltip for the items of ExactBrowser.
I change the demo code (https://openui5.hana.ondemand.com/#test-resources/sap/ui/ux3/demokit/ExactBrowser.html) to this:
var oModel = new sap.ui.model.json.JSONModel();
oModel.setData(oTestData);
var oOutput2 = new sap.ui.commons.TextView();
var oExactBrowser2 = new sap.ui.ux3.ExactBrowser({
attributeSelected: function(oEvent) {
oOutput2.setText(getSelectionMessage(oEvent));
}
});
oExactBrowser2.setModel(oModel);
var oAttrTemplate = new sap.ui.ux3.ExactAttribute();
oAttrTemplate.bindProperty("text", "name");
oAttrTemplate.bindProperty("showSubAttributesIndicator", "subVals");
oAttrTemplate.bindProperty("selected", "selected");
oAttrTemplate.attachSupplyAttributes(function(oEvent){
oEvent.getParameter("attribute").bindAggregation("attributes", "attributes", oAttrTemplate);
});
oAttrTemplate .setTooltip('aabbcc');
oExactBrowser2.bindAggregation("attributes", "/attributes", oAttrTemplate);
But, then I found that it only change the tooltip of the Title, like this:
You know, what I want change is the tooltip of the ITEMs:
(It has a default value, which is same as the item's name.)
How to change the tooltip of this item?
Could you help me?
Thank you!!