From: Chris Rebert Date: Thu, 15 May 2014 01:12:18 +0000 (-0700) Subject: docs: sort tooltip & container options for sanity X-Git-Tag: v3.2.0~151^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99f6f700f47154c8126bfbdceadcd3a45627801a;p=thirdparty%2Fbootstrap.git docs: sort tooltip & container options for sanity --- diff --git a/docs/_includes/js/popovers.html b/docs/_includes/js/popovers.html index b2f58fbc48..a3e5f81cdd 100644 --- a/docs/_includes/js/popovers.html +++ b/docs/_includes/js/popovers.html @@ -151,6 +151,33 @@ $('.popover-dismiss').popover({ true Apply a CSS fade transition to the popover + + container + string | false + false + +

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

+ + + + content + string | function + '' + +

Default content value if data-content attribute isn't present.

+

If a function is given, it will be called with 1 argument, which is the element that the popover is attached to.

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

Delay showing and hiding the popover (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 @@ -169,18 +196,6 @@ $('.popover-dismiss').popover({ false If a selector is provided, popover objects will be delegated to the specified targets. In practice, this is used to enable dynamic HTML content to have popovers added. See this and an informative example. - - trigger - string - 'click' - How popover is triggered - click | hover | focus | manual - - - title - string | function - '' - Default title value if title attribute isn't present - template string @@ -194,31 +209,16 @@ $('.popover-dismiss').popover({ - content + title string | function '' - -

Default content value if data-content attribute isn't present.

-

If a function is given, it will be called with 1 argument, which is the element that the popover is attached to.

- - - - delay - number | object - 0 - -

Delay showing and hiding the popover (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 }

- + Default title value if title attribute isn't present - container - string | false - false - -

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

- + trigger + string + 'click' + How popover is triggered - click | hover | focus | manual diff --git a/docs/_includes/js/tooltips.html b/docs/_includes/js/tooltips.html index 64ea06e85e..4d91da640b 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