Search code examples
sapui5

ObjectPageHeader: titleSelectorTooltip Not Working


I am using title selector for my object page header. However, I am not able to overwrite default tooltip for the user-defined string.:

<ObjectPageHeader id="idOpreationObjectPageHeader"
  showTitleSelector="true"
  titleSelectorTooltip="myOwnString"
  titleSelectorPress="handleTitleSelectorPress">
</ObjectPageHeader>

Using this code, it still shows me default string in a tooltip like this:

sap.uxap.ObjectPageHeader default title selector tooltip

Can anyone guide me what am I doing wrong?


Solution

  • titleSelectorTooltip is a property from sap.m.ObjectHeader only. sap.uxap.ObjectPageHeader doesn't have that kind of setting.

    Update: As of 1.56, the property titleSelectorTooltip is available in ObjectPageHeader too.

    titleSelectorTooltip
    The custom tooltip will be visible if the showTitleSelector property is set to true.
    Note: If the aggregation is destroyed or set to invalid value, the default tooltip will be set. The default tooltip text is "Related options".