Skip to Content
1
Sep 17, 2014 at 03:25 PM

Setting ToolTip for sap.m.Button

1988 Views

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