select2-bootstrap-5-theme
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "select2-bootstrap-5-theme", | ||
"description": "Select2 v4 theme for Bootstrap 5", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "author": "Andrew Palfrey <apalfrey@apalfrey.me>", |
@@ -10,4 +10,5 @@ # Select2 Bootstrap 5 Theme | ||
[Select2](https://github.com/select2/select2) v4 theme for Bootstrap 5, inspired by [select2-bootstrap4-theme](https://github.com/ttskch/select2-bootstrap4-theme) | ||
**Currently only works for Select2 v4.1.0** | ||
**Works with Select2 v4.0 and v4.1** | ||
## Examples | ||
@@ -20,7 +21,20 @@ https://apalfrey.github.io/select2-bootstrap-5-theme/ | ||
#### Select2 v4.0 | ||
```html | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/select2@4.0.13/dist/css/select2.min.css" /> | ||
<script src="https://cdn.jsdelivr.net/npm/select2@4.0.13/dist/js/select2.full.min.js"></script> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/select2-bootstrap-5-theme@1.1.1/dist/select2-bootstrap-5-theme.min.css" /> | ||
<!-- Or for RTL support --> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/select2-bootstrap-5-theme@1.1.1/dist/select2-bootstrap-5-theme.rtl.min.css" /> | ||
``` | ||
#### Select2 v4.1 | ||
```html | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css" /> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/select2-bootstrap-5-theme@1.1.0/dist/select2-bootstrap-5-theme.min.css" /> | ||
<script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js"></script> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/select2-bootstrap-5-theme@1.1.1/dist/select2-bootstrap-5-theme.min.css" /> | ||
<!-- Or for RTL support --> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/select2-bootstrap-5-theme@1.1.0/dist/select2-bootstrap-5-theme.rtl.min.css" /> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/select2-bootstrap-5-theme@1.1.1/dist/select2-bootstrap-5-theme.rtl.min.css" /> | ||
``` | ||
@@ -66,3 +80,4 @@ | ||
theme: "bootstrap-5", | ||
selectionCssClass: "select2--small", | ||
containerCssClass: "select2--small", // For Select2 v4.0 | ||
selectionCssClass: "select2--small", // For Select2 v4.1 | ||
dropdownCssClass: "select2--small", | ||
@@ -74,3 +89,4 @@ }); | ||
theme: "bootstrap-5", | ||
selectionCssClass: "select2--large", | ||
containerCssClass: "select2--large", // For Select2 v4.0 | ||
selectionCssClass: "select2--large", // For Select2 v4.1 | ||
dropdownCssClass: "select2--large", | ||
@@ -77,0 +93,0 @@ }); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
126415
1024
136