From 2d8c02eb1024ef2ce8877d6484a9ea8a4d9cd67f Mon Sep 17 00:00:00 2001 From: James Remeika Date: Fri, 20 Nov 2020 04:56:16 -0500 Subject: tooltip/popover: add a `customClass` option (#31834) Co-authored-by: XhmikosR --- site/content/docs/4.5/components/popovers.md | 9 +++++++++ site/content/docs/4.5/components/tooltips.md | 9 +++++++++ 2 files changed, 18 insertions(+) (limited to 'site/content/docs') diff --git a/site/content/docs/4.5/components/popovers.md b/site/content/docs/4.5/components/popovers.md index e06a81769..a44bbf8c9 100644 --- a/site/content/docs/4.5/components/popovers.md +++ b/site/content/docs/4.5/components/popovers.md @@ -269,6 +269,15 @@ Note that for security reasons the `sanitize`, `sanitizeFn` and `whiteList` opti Allow to specify which position Popper will use on fallback. For more information refer to Popper.js's behavior docs + + customClass + string | function + '' + +

Add classes to the popover when it is shown. Note that these classes will be added in addition to any classes specified in the template. To add mutiple classes, separate them with spaces: 'a b'.

+

You can also pass a function that should return a single string containing additional class names.

+ + boundary string | element diff --git a/site/content/docs/4.5/components/tooltips.md b/site/content/docs/4.5/components/tooltips.md index c297eea16..fdb926bce 100644 --- a/site/content/docs/4.5/components/tooltips.md +++ b/site/content/docs/4.5/components/tooltips.md @@ -250,6 +250,15 @@ Note that for security reasons the `sanitize`, `sanitizeFn` and `whiteList` opti Allow to specify which position Popper will use on fallback. For more information refer to Popper.js's behavior docs + + customClass + string | function + '' + +

Add classes to the popover when it is shown. Note that these classes will be added in addition to any classes specified in the template. To add mutiple classes, separate them with spaces: 'a b'.

+

You can also pass a function that should return a single string containing additional class names.

+ + boundary string | element -- cgit v1.2.3