cancel
Showing results for 
Search instead for 
Did you mean: 

Link control tool tip is not working on mobile device

former_member338801
Participant
0 Kudos

Hi Experts,

I have one issue related to link control. When I add tooltip to the link control then upon mouse over it is showing tool til data but same thing is not working on mobile device. Please check the code that I added and let me know if I am missing anything.

XML Code :
 
<Table id="idTable" items="{/results}" growing="true" >
<columns>
<Column hAlign="Left">
        <Text text="Name"></Text>
       </Column>

</columns>

 <items>
       <ColumnListItem type="Active">
        <cells>

<Link text="{path:'Link Name'}" tooltip="{path:'Tool Tip'}"/>
        </cells>
       </ColumnListItem>
      </items>
     </Table>


Controller code :

 onInit: function() {
 var that = this;
   if (sap.ui.Device.system.desktop === true) {
    that.getView().byId("idTable").setWidth("100%");
   } else if (sap.ui.Device.system.phone === true) {
    that.getView().byId("idTable").setWidth("100%");
       }
}

Json Data :

{
 "results": [
  {
    "Link Name" : "UI Data",
   "Tool Tip": "On mouse hover"
  },
{
 "Link Name" : "UI Data1",
   "Tool Tip": "On mouse hover1"
},

{
 "Link Name" : "UI Data2",
   "Tool Tip": "On mouse hover2"
},

{
 "Link Name" : "UI Data3",
   "Tool Tip": "On mouse hover3desktop-view-tooltip.png"
}
]
}






Thanks and Regards,

RK

former_member338801
Participant
0 Kudos

If you add any other control that works in mobile device also with same code but tool tip of link control doen't work.

former_member338801
Participant
0 Kudos

Thanks Gourab for your eply.

Where do you want me to put double quotes? If you are saying in the xml code binding then it won't allow it gives run time error and for other fields it works with single quotes.

Thanks and Regards,

RK

Accepted Solutions (0)

Answers (1)

Answers (1)

mvaibhav
Contributor

hi Ram,

According to SAP Documentations, Tooltips are usually invoked by a mouseover event, which is why they are limited to desktop devices. And it is genrally used for non-critical information.

So if it is important to display information in your case, you will have to use some other control for it.

https://experience.sap.com/fiori-design-web/using-tooltips/

Thanks,

Vaibhav

former_member338801
Participant
0 Kudos

Thanks for the information Vaibhav.

Which one will be the suitable control in that case that works in all the devices please suggest.

Thanks and Regards,

RK

mvaibhav
Contributor
0 Kudos

Control will depend on the kind of information. If its critical, why don't you display it as a text.

If the issue is regarding space on screen, you can use a Popover or responsive Popover on any control.