Skip to content

Commit 5d4d656

Browse files
committed
docs: update documentation
1 parent 2872856 commit 5d4d656

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
As options can be passed via data attributes or JavaScript, you can append an option name to `data-cui-`, as in `data-cui-animation="{value}"`. Make sure to change the case type of the option name from "_camelCase_" to "_kebab-case_" when passing the options via data attributes. For example, use `data-cui-custom-class="beautifier"` instead of `data-cui-customClass="beautifier"`.
1+
As options can be passed via data attributes or JavaScript, you can append an option name to `data-coreui-`, as in `data-coreui-animation="{value}"`. Make sure to change the case type of the option name from "_camelCase_" to "_kebab-case_" when passing the options via data attributes. For example, use `data-coreui-custom-class="beautifier"` instead of `data-coreui-customClass="beautifier"`.
22

3-
As of CoreUI 4.2.0, all components support an **experimental** reserved data attribute `data-cui-config` that can house simple component configuration as a JSON string. When an element has `data-cui-config='{"delay":0, "title":123}'` and `data-cui-title="456"` attributes, the final `title` value will be `456` and the separate data attributes will override values given on `data-cui-config`. In addition, existing data attributes are able to house JSON values like `data-cui-delay='{"show":0,"hide":150}'`.
3+
As of CoreUI 4.2.0, all components support an **experimental** reserved data attribute `data-coreui-config` that can house simple component configuration as a JSON string. When an element has `data-coreui-config='{"delay":0, "title":123}'` and `data-coreui-title="456"` attributes, the final `title` value will be `456` and the separate data attributes will override values given on `data-coreui-config`. In addition, existing data attributes are able to house JSON values like `data-coreui-delay='{"show":0,"hide":150}'`.

0 commit comments

Comments
 (0)