on 09-17-2014 4:25 PM
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
This looks great, but I think it isn't working with a sap.m.Button, is it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
we get tooltip JS Bin - Collaborative JavaScript Debugging
FYI.. chk the documentation about tooltip JsDoc Report - SAP UI development Toolkit for HTML5 - API Reference - sap.m.SearchField
It was giving me wrong link.. this is the correct link. JS Bin - Collaborative JavaScript Debugging
Hi Stef,
TooltipBase is abstract class. Try intiailizing with sap.ui.commons.RichTooltip.
var oToolTip = new sap.ui.commons.RichTooltip({
text: "test"
});
-Rashmi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Stef,
chk this.. JS Bin - Collaborative JavaScript Debugging
or otherwise you can set the string : JS Bin - Collaborative JavaScript Debugging
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.