diff options
author | GeoSot <geo.sotis@gmail.com> | 2021-11-25 20:14:02 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-25 20:14:02 +0300 |
commit | 94a596fbcb1011ba990da2078ba7e20b39dba2d9 (patch) | |
tree | 26af41580d5cae017e32e29cfef96178e897afa6 /site/content/docs/5.1/components/tooltips.md | |
parent | fa33e83f25faf8c378b99126fbd69977e667ad9a (diff) |
Add a template factory helper to handle all template cases (#34519)
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
Diffstat (limited to 'site/content/docs/5.1/components/tooltips.md')
-rw-r--r-- | site/content/docs/5.1/components/tooltips.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/site/content/docs/5.1/components/tooltips.md b/site/content/docs/5.1/components/tooltips.md index caa2a2d0c0..16501a3c96 100644 --- a/site/content/docs/5.1/components/tooltips.md +++ b/site/content/docs/5.1/components/tooltips.md @@ -392,6 +392,17 @@ Removes the ability for an element's tooltip to be shown. The tooltip will only tooltip.disable() ``` +#### setContent + +Gives a way to change the tooltip's content after its initialization. + +```js +tooltip.setContent({ '.tooltip-inner': 'another title' }) +``` +{{< callout info >}} +The `setContent` method accepts an `object` argument, where each property-key is a valid `string` selector within the popover template, and each related property-value can be `string` | `element` | `function` | `null` +{{< /callout >}} + #### toggleEnabled Toggles the ability for an element's tooltip to be shown or hidden. |