From 7c50859e9338512dfb70e5b512e67c95725f0f1a Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Tue, 25 Mar 2014 19:12:16 -0700 Subject: Document `template` option of tooltip & popover; fixes #13088 Also capitalize column titles and descriptions. --- docs/_includes/js/tooltips.html | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) (limited to 'docs/_includes/js/tooltips.html') diff --git a/docs/_includes/js/tooltips.html b/docs/_includes/js/tooltips.html index b952e8504..83ef82e06 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 }

-- cgit v1.2.3