From 99f6f700f47154c8126bfbdceadcd3a45627801a Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Wed, 14 May 2014 18:12:18 -0700 Subject: docs: sort tooltip & container options for sanity --- docs/_includes/js/tooltips.html | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'docs/_includes/js/tooltips.html') diff --git a/docs/_includes/js/tooltips.html b/docs/_includes/js/tooltips.html index 64ea06e85..4d91da640 100644 --- a/docs/_includes/js/tooltips.html +++ b/docs/_includes/js/tooltips.html @@ -90,6 +90,24 @@ $('#example').tooltip(options) true Apply a CSS fade transition to the tooltip + + container + string | false + false + +

Appends the tooltip to a specific element. Example: container: 'body'

+ + + + delay + number | object + 0 + +

Delay showing and hiding the tooltip (ms) - does not apply to manual trigger type

+

If a number is supplied, delay is applied to both hide/show

+

Object structure is: delay: { show: 500, hide: 100 }

+ + html boolean @@ -131,24 +149,6 @@ $('#example').tooltip(options) 'hover focus' How tooltip is triggered - click | hover | focus | manual. You may pass multiple triggers; separate them with a space. - - delay - number | object - 0 - -

Delay showing and hiding the tooltip (ms) - does not apply to manual trigger type

-

If a number is supplied, delay is applied to both hide/show

-

Object structure is: delay: { show: 500, hide: 100 }

- - - - container - string | false - false - -

Appends the tooltip to a specific element. Example: container: 'body'

- - viewport string | object -- cgit v1.2.3 From 6fdbd8e3cf90d1beaccc60396d30303287b4b1b8 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Wed, 14 May 2014 18:19:50 -0700 Subject: add 'selector' option motivation to tooltip docs --- docs/_includes/js/tooltips.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/_includes/js/tooltips.html') diff --git a/docs/_includes/js/tooltips.html b/docs/_includes/js/tooltips.html index 4d91da640..72096b368 100644 --- a/docs/_includes/js/tooltips.html +++ b/docs/_includes/js/tooltips.html @@ -124,7 +124,7 @@ $('#example').tooltip(options) selector string false - If a selector is provided, tooltip objects will be delegated to the specified targets. + If a selector is provided, tooltip objects will be delegated to the specified targets. In practice, this is used to enable dynamic HTML content to have tooltips added. See this and an informative example. template -- cgit v1.2.3 From 3465d984fb934b1616b8d4ecf394b997cd1f0fab Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Wed, 14 May 2014 18:23:58 -0700 Subject: add 'container' option motivation to tooltip docs --- docs/_includes/js/tooltips.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/_includes/js/tooltips.html') diff --git a/docs/_includes/js/tooltips.html b/docs/_includes/js/tooltips.html index 72096b368..e967878f8 100644 --- a/docs/_includes/js/tooltips.html +++ b/docs/_includes/js/tooltips.html @@ -95,7 +95,7 @@ $('#example').tooltip(options) string | false false -

Appends the tooltip to a specific element. Example: container: 'body'

+

Appends the tooltip to a specific element. Example: container: 'body'. This option is particularly useful in that it allows you to position the tooltip in the flow of the document near the triggering element - which will prevent the tooltip from floating away from the triggering element during a window resize.

-- cgit v1.2.3