From: Gareth Adams Date: Tue, 3 Oct 2017 18:23:42 +0000 (+0100) Subject: Updates docs to match Tooltip type checking (#22342) X-Git-Tag: v4.0.0-beta.2~108 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a02d068b247589e136002b6cf5aa9311632de3ec;p=thirdparty%2Fbootstrap.git Updates docs to match Tooltip type checking (#22342) * Updates docs to match Tooltip type checking Documentation now matches the types defined in the DefaultType constant in js/src/tooltip.js * Revert documentation clarify where true is invalid --- diff --git a/docs/4.0/components/popovers.md b/docs/4.0/components/popovers.md index 0dbca96ff6..b8356b0d20 100644 --- a/docs/4.0/components/popovers.md +++ b/docs/4.0/components/popovers.md @@ -179,7 +179,7 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap container - string | false + string | element | 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.

@@ -221,7 +221,7 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap selector - string + string | false 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. diff --git a/docs/4.0/components/tooltips.md b/docs/4.0/components/tooltips.md index 30d38f0fb6..d3598048df 100644 --- a/docs/4.0/components/tooltips.md +++ b/docs/4.0/components/tooltips.md @@ -201,7 +201,7 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap selector - string + string | false false 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 popovers added. See this and an informative example.