0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +01:00
Bootstrap/js/tests/unit/util
GeoSot 584600bda3
Manipulator: Add JSON parse support (#35077)
Support parsing JSON from each component's main element using the `data-bs-config` attribute.

The `bs-config` attribute will be reserved and omitted during `getDataAttributes` parsing.

With this commit, every component, will create its config object, using:

* defaults
* data-bs-config
* the rest of data attributes
* configuration object given during instance initialization

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
Co-authored-by: Mark Otto <markd.otto@gmail.com>
Co-authored-by: Mark Otto <markdotto@gmail.com>
2022-04-21 21:41:43 +03:00
..
backdrop.spec.js tests: replace 'done' callback with 'Promise' to fix deprecation errors (#35659) 2022-01-30 14:30:04 +02:00
component-functions.spec.js tests: remove extra spaces, unneeded arrays and add missing newlines 2021-12-01 14:30:49 +02:00
config.spec.js Manipulator: Add JSON parse support (#35077) 2022-04-21 21:41:43 +03:00
focustrap.spec.js tests: replace 'done' callback with 'Promise' to fix deprecation errors (#35659) 2022-01-30 14:30:04 +02:00
index.spec.js tests: replace 'done' callback with 'Promise' to fix deprecation errors (#35659) 2022-01-30 14:30:04 +02:00
sanitizer.spec.js Sanitizer: fix logic and add a test. (#35133) 2021-10-07 17:48:36 +03:00
scrollbar.spec.js tests: replace 'done' callback with 'Promise' to fix deprecation errors (#35659) 2022-01-30 14:30:04 +02:00
swipe.spec.js Update devDependencies (#35841) 2022-02-15 08:50:37 +02:00
template-factory.spec.js Update devDependencies (#35841) 2022-02-15 08:50:37 +02:00