]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Add a note to change the case type of option name (#32995)
authorRohit Sharma <rohit2sharma95@gmail.com>
Mon, 8 Feb 2021 14:55:47 +0000 (20:25 +0530)
committerGitHub <noreply@github.com>
Mon, 8 Feb 2021 14:55:47 +0000 (16:55 +0200)
site/content/docs/5.0/components/popovers.md
site/content/docs/5.0/components/tooltips.md

index 13d3edd7fee51c8656d1416e4d36a35776740f19..56616fd0cd141eb0f21829ac9b40a2e7faf2e098 100644 (file)
@@ -130,7 +130,7 @@ Additionally, while it is possible to also include interactive controls (such as
 
 ### Options
 
-Options can be passed via data attributes or JavaScript. For data attributes, append the option name to `data-bs-`, as in `data-bs-animation=""`.
+Options can be passed via data attributes or JavaScript. For data attributes, append the option name to `data-bs-`, as in `data-bs-animation=""`. Make sure to change the case type of the option name from camelCase to kebab-case when passing via data attributes. For example: instead of using `data-bs-customClass="beautifier"`, use `data-bs-custom-class="beautifier"`.
 
 {{< callout warning >}}
 Note that for security reasons the `sanitize`, `sanitizeFn`, and `allowList` options cannot be supplied using data attributes.
index ea4762a673ea7b91ff06d96ac4e4d807dc0f5bbd..9a5dd93931c43e70fc06ea4871b217da7058b3c6 100644 (file)
@@ -157,7 +157,7 @@ Elements with the `disabled` attribute aren't interactive, meaning users cannot
 
 ### Options
 
-Options can be passed via data attributes or JavaScript. For data attributes, append the option name to `data-bs-`, as in `data-bs-animation=""`.
+Options can be passed via data attributes or JavaScript. For data attributes, append the option name to `data-bs-`, as in `data-bs-animation=""`. Make sure to change the case type of the option name from camelCase to kebab-case when passing via data attributes. For example: instead of using `data-bs-customClass="beautifier"`, use `data-bs-custom-class="beautifier"`.
 
 {{< callout warning >}}
 Note that for security reasons the `sanitize`, `sanitizeFn`, and `allowList` options cannot be supplied using data attributes.