Skip to content

Commit 858f160

Browse files
author
Maria Rudenko
committed
Merge pull request '[add] descriptions of the delayShow/Hide functions of the tooltips extension' (#113) from describe-tooltips-extension-functions-2263 into master
Reviewed-on: https://git.webix.io/Servers/gantt-docs/pulls/113
2 parents 0d992fa + 8192859 commit 858f160

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

data/desktop/tooltips.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,21 @@ removes tooltip. As a parameter the method takes:
109109

110110
- **selector** - (*string*) the CSS selector of a Gantt element
111111

112+
<h4 id="delayShow">gantt.ext.tooltips.delayShow()</h4>
113+
114+
shows a tooltip after the delay set by api/gantt_tooltip_timeout_config.md. If the config is not set, a small default delay is used.
115+
116+
This method is **debounced**, meaning that repeated calls within the delay window reset the timer and the tooltip is shown only once.
117+
118+
As parameters the method takes:
119+
120+
- **event** - (*Event*) a native mouse event used to position the tooltip
121+
- **tooltipText** - (*string*) the text of the tooltip rendered as innerHTML
122+
123+
<h4 id="delayHide">gantt.ext.tooltips.delayHide()</h4>
124+
125+
hides the currently displayed tooltip after a delay set by api/gantt_tooltip_hide_timeout_config.md. If the config is not set, a small default delay is used.
126+
112127

113128

114129
Tooltips for different elements

0 commit comments

Comments
 (0)