Skip to Content

sap.m.Popover as tooltip to sap.m.Text

Jun 12, 2017 at 11:00 AM


avatar image
Former Member

Since sap.ui.commons.Callout is depricated, we are trying to use sap.m.Popover as callout.

var oPopoverTooltip = new sap.m.Popover({content: new sap.m.Text({text: oCustomData[0].getValue()})});

oText.setTooltip(oPopoverTooltip); // this does not work.

Error as below.

Element sap.m.Popover#__popover0" is not valid for aggregation "tooltip" of Element sap.m.Text

This below works, but since Callout is deprecated, want to know if Popover can be used

new sap.ui.commons.Callout({content: new sap.m.Text({text: oCustomData[0].getValue()})});

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
avatar image
Former Member
Jun 12, 2017 at 01:38 PM

HI Ravin

Unfortunately, the deprecation does not provide us with alternative. We can extend sap.m.Text to do this.,js,output



10 |10000 characters needed characters left characters exceeded