on 10-19-2019 5:22 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.