mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-17 19:21:23 +03:00
Allow constructors to accept a CSS selector (#32245)
Co-authored-by: XhmikosR <xhmikosr@gmail.com> Co-authored-by: Mark Otto <otto@github.com>
This commit is contained in:
@@ -9,6 +9,17 @@ toc: true
|
||||
|
||||
## v5.0.0-beta3
|
||||
|
||||
### JavaScript
|
||||
|
||||
- All plugins can now accept a CSS selector as the first argument. You can either pass a DOM element or any valid CSS selector to create a new instance of the plugin:
|
||||
|
||||
```js
|
||||
var modal = new bootstrap.Modal('#myModal')
|
||||
var dropdown = new bootstrap.Dropdown('[data-bs-toggle="dropdown"]')
|
||||
```
|
||||
|
||||
## v5.0.0-beta2
|
||||
|
||||
### Utilities
|
||||
|
||||
- Dropped the `0` entry in `$border-widths` map to remove the duplicated `.border-0` class.
|
||||
|
||||
Reference in New Issue
Block a user