diff --git a/docs/_includes/js/popovers.html b/docs/_includes/js/popovers.html index 56e3600aa4..739d86bce7 100644 --- a/docs/_includes/js/popovers.html +++ b/docs/_includes/js/popovers.html @@ -135,9 +135,9 @@ $('.popover-dismiss').popover({ Name - type - default - description + Type + Default + Description @@ -145,7 +145,7 @@ $('.popover-dismiss').popover({ animation boolean true - apply a CSS fade transition to the popover + Apply a CSS fade transition to the popover html @@ -157,38 +157,50 @@ $('.popover-dismiss').popover({ placement string | function 'right' - how to position the popover - top | bottom | left | right | auto.
When "auto" is specified, it will dynamically reorient the popover. For example, if placement is "auto left", the popover will display to the left when possible, otherwise it will display right. + How to position the popover - top | bottom | left | right | auto.
When "auto" is specified, it will dynamically reorient the popover. For example, if placement is "auto left", the popover will display to the left when possible, otherwise it will display right. selector string 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. + 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 + How popover is triggered - click | hover | focus | manual title string | function '' - default title value if title attribute isn't present + Default title value if title attribute isn't present + + + template + string + '<div class="popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>' + +

Base HTML to use when creating the popover.

+

The popover's title will be injected into the .popover-title.

+

The popover's content will be injected into the .popover-content.

+

.arrow will become the popover's arrow.

+

The outermost wrapper element should have the .popover class.

+ content string | function '' - default content value if data-content attribute isn't present + Default content value if data-content attribute isn't present delay number | object 0 -

delay showing and hiding the popover (ms) - does not apply to manual trigger type

+

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 }

diff --git a/docs/_includes/js/tooltips.html b/docs/_includes/js/tooltips.html index b952e85040..83ef82e06c 100644 --- a/docs/_includes/js/tooltips.html +++ b/docs/_includes/js/tooltips.html @@ -74,9 +74,9 @@ $('#example').tooltip(options) Name - type - default - description + Type + Default + Description @@ -84,7 +84,7 @@ $('#example').tooltip(options) animation boolean true - apply a CSS fade transition to the tooltip + Apply a CSS fade transition to the tooltip html @@ -96,7 +96,7 @@ $('#example').tooltip(options) placement string | function 'top' - how to position the tooltip - top | bottom | left | right | auto.
When "auto" is specified, it will dynamically reorient the tooltip. For example, if placement is "auto left", the tooltip will display to the left when possible, otherwise it will display right. + How to position the tooltip - top | bottom | left | right | auto.
When "auto" is specified, it will dynamically reorient the tooltip. For example, if placement is "auto left", the tooltip will display to the left when possible, otherwise it will display right. selector @@ -104,24 +104,35 @@ $('#example').tooltip(options) false If a selector is provided, tooltip objects will be delegated to the specified targets. + + template + string + '<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>' + +

Base HTML to use when creating the tooltip.

+

The tooltip's title will be injected into the .tooltip-inner.

+

.tooltip-arrow will become the tooltip's arrow.

+

The outermost wrapper element should have the .tooltip class.

+ + title string | function '' - default title value if title attribute isn't present + Default title value if title attribute isn't present trigger string 'hover focus' - how tooltip is triggered - click | hover | focus | manual. You may pass multiple triggers; separate them with a space. + 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

+

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 }