144
Views
8
Comments
Solved
i want to close tooltip if i click on icon that founded in tooltip content

i want to close tooltip if i click on icon that founded in tooltip content
if i use close tooltip action inside icon on click action Onclick not working if i click on icon 

2024-12-10 04-40-04
Gitansh Anand
Solution

Hi @Abduerhman Salama, please look at the OML I am adding and see if it helps.

What I did here was create an OnInitialized event for the tooltip (and switch the trigger to onClick), then add JS to call a function that toggles the tooltip open and close based on a local variable.

Thanks
Gitansh Anand

testTooltip.oml
2024-05-20 09-45-12
Jean Bastos

Hi :)


you need to add TooltipClose reference in your project...


and call this action on Onclick icon event, or enclose icon in a link that calls TooltipClose

2025-01-02 13-34-30
Abduerhman Salama

not working

test Tooltip.oap
2025-01-02 13-34-30
Abduerhman Salama
2024-09-12 02-43-38
Deepsagar Dubey

Hi @Abduerhman Salama 

Give a name to your Tooltip then it'll act as a runtime id for this widget.


After in your close button click use ToolTipClose action and pass your tooltip name as widget id, like below image.


I hope it'll help you,

Thanks
Deep

2025-01-02 13-34-30
Abduerhman Salama

not working

test Tooltip.oap
2025-01-02 13-34-30
Abduerhman Salama
2024-09-12 02-43-38
Deepsagar Dubey
2024-12-10 04-40-04
Gitansh Anand
Solution

Hi @Abduerhman Salama, please look at the OML I am adding and see if it helps.

What I did here was create an OnInitialized event for the tooltip (and switch the trigger to onClick), then add JS to call a function that toggles the tooltip open and close based on a local variable.

Thanks
Gitansh Anand

testTooltip.oml
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.