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/popovers.html | 32 ++++++++++++++++++++++---------- 1 file changed, 22 insertions(+), 10 deletions(-) (limited to 'docs/_includes/js/popovers.html') diff --git a/docs/_includes/js/popovers.html b/docs/_includes/js/popovers.html index 56e3600aa..739d86bce 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 }

-- cgit v1.2.3