Skip to Content
author's profile photo Former Member
Former Member

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

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()})});

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • Best Answer
    Posted on 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



    Add comment
    10|10000 characters needed characters exceeded