Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8940

How to add tooltip for ExactBrowser?

$
0
0

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:

     Capture.JPG

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.)

Capture1.JPG

How to change the tooltip of this item?

Could you help me?

Thank you!!


Viewing all articles
Browse latest Browse all 8940

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>