Skip to Content
avatar image
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

  • Get RSS Feed

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.

    http://jsbin.com/boferij/edit?html,js,output

    Thanks

    Dennis

    Add comment
    10|10000 characters needed characters exceeded