Skip to Content
0

Tooltip for Tab Container Item

Oct 12, 2017 at 07:04 PM

65

avatar image

Hi Experts,

I want to show some text in tooltip of tab container item but even after giving the property, the tooltip is not showing up.

Below is my code:

jQuery(function() { var tab = new sap.m.TabContainer({ showAddNewButton : true, items:[ new sap.m.TabContainerItem({ name:"test", tooltip:"hey" }), new sap.m.TabContainerItem({ name:"test2", tooltip:"hey2" }) ] }); tab.placeAt('content'); });

Please let me know a solution for this.

Thanks,

Mansi

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

VIPLOVE KHUSHALANI Oct 23, 2017 at 01:54 PM
0

Hi Mansi Dixit ,

there is no property cal tooltip for the tabcontaineritem control, so you can not use tooltip property .. If you want to still apply tooltip either use CSS tooltip custom one or use javacript to add title property of the tabcontaineritem div rendered ..Check Developer's tool for that ..

Thanks

Viplove

Show 3 Share
10 |10000 characters needed characters left characters exceeded

Hi Viplove,

Thanks for your reply but tooltip is the basic property of control class so shouldn't it be available here as well? Also,can we extend this control and do something there to get the tooltip.

Thanks,

Mansi

0

Yeah you are correct can you try .setTooltip function instead of assigning it directly as a property .

Thanks

Viplove

0

tab.setTooltip("Hello") .

tab.getTooltip(); is working but

but when we do the mouse over on the tab its not showing the tooltip

0