Sự kiện đóng phương thức Bootstrap React
Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Morbi leo risus, porta ac consectetur ac, tiền đình ở eros Show
Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor Aenean lacinia bibendum nulla sed consectetur. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla Plugins can be included individually (using Bootstrap's individual 4 files), or all at once (using 5 or the minified 6)Using the compiled JavaScriptBoth 5 and 6 contain all plugins in a single file. Include only onePlugin dependenciesSome plugins and CSS components depend on other plugins. If you include plugins individually, make sure to check for these dependencies in the docs. Also note that all plugins depend on jQuery (this means jQuery must be included before the plugin files). Consult our 9 to see which versions of jQuery are supportedData attributesYou can use all Bootstrap plugins purely through the markup API without writing a single line of JavaScript. This is Bootstrap's first-class API and should be your first consideration when using a plugin That said, in some situations it may be desirable to turn this functionality off. Therefore, we also provide the ability to disable the data attribute API by unbinding all events on the document namespaced with 0. This looks like this
Alternatively, to target a specific plugin, just include the plugin's name as a namespace along with the data-api namespace like this
Only one plugin per element via data attributesDon't use data attributes from multiple plugins on the same element. For example, a button cannot both have a tooltip and toggle a modal. To accomplish this, use a wrapping element Programmatic APIWe also believe you should be able to use all Bootstrap plugins purely through the JavaScript API. All public APIs are single, chainable methods, and return the collection acted upon
All methods should accept an optional options object, a string which targets a particular method, or nothing (which initiates a plugin with default behavior)
Each plugin also exposes its raw constructor on a 1 property. 2. If you'd like to get a particular plugin instance, retrieve it directly from an element. 3Default settingsYou can change the default settings for a plugin by modifying the plugin's 4 object
No conflictSometimes it is necessary to use Bootstrap plugins with other UI frameworks. In these circumstances, namespace collisions can occasionally occur. If this happens, you may call 5 on the plugin you wish to revert the value of
EventsBootstrap provides custom events for most plugins' unique actions. Generally, these come in an infinitive and past participle form - where the infinitive (ex. 6) is triggered at the start of an event, and its past participle form (ex. 7) is triggered on the completion of an actionAs of 3. 0. 0, all Bootstrap events are namespaced All infinitive events provide 8 functionality. This provides the ability to stop the execution of an action before it starts
SanitizerTooltips and Popovers use our built-in sanitizer to sanitize options which accept HTML The default 9 value is the following
If you want to add new values to this default 9 you can do the following
If you want to bypass our sanitizer because you prefer to use a dedicated library, for example DOMPurify, you should do the following
Browsers without $(document).off('.alert.data-api') |