Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Setting ToolTip for sap.m.Button

Hi everybody,

does anybody of you know whether it is possible to set a tooltip for a sap.m.Button?

I know that each button has a method named "setTooltip".

What I did so far was to create something like this:

var oToolTip = new sap.ui.core.TooltipBase({

     text: "test"

});

this.getView().byId("myButton").setTooltip(

     oToolTip

);

The current problem is that each time I run the application I get a message which says that it failed to load the sap ui core TooltipBase Renderer?!

Has anybody of you already made any experience with controls of the sap.m namespace and with tooltips?

I'm really looking forward to hearing from you!!!

Greetings

Stef

Tags:
Former Member replied

It was giving me wrong link.. this is the correct link. JS Bin - Collaborative JavaScript Debugging

1 View this answer in context
Not what you were looking for? View more on this topic or Ask a question