bootstrap5-toggle 4.0.1-alpha → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -4
- package/js/bootstrap5-toggle.min.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -34,6 +34,8 @@ Project |Description
|
|
|
34
34
|
- [Installation](#installation)
|
|
35
35
|
- [CDN](#cdn)
|
|
36
36
|
- [Download](#download)
|
|
37
|
+
- [NPM](#npm)
|
|
38
|
+
- [Yarn](#yarn)
|
|
37
39
|
- [Usage](#usage)
|
|
38
40
|
- [Initialize With HTML](#initialize-with-html)
|
|
39
41
|
- [Initialize With Code](#initialize-with-code)
|
|
@@ -53,17 +55,27 @@ Project |Description
|
|
|
53
55
|
|
|
54
56
|
## CDN
|
|
55
57
|
```html
|
|
56
|
-
<link href="https://cdn.jsdelivr.net/gh/palcarazm/bootstrap5-toggle@4.
|
|
57
|
-
<script src="https://cdn.jsdelivr.net/gh/palcarazm/bootstrap5-toggle@4.
|
|
58
|
+
<link href="https://cdn.jsdelivr.net/gh/palcarazm/bootstrap5-toggle@4.1.0/css/bootstrap5-toggle.min.css" rel="stylesheet">
|
|
59
|
+
<script src="https://cdn.jsdelivr.net/gh/palcarazm/bootstrap5-toggle@4.1.0/js/bootstrap5-toggle.min.js"></script>
|
|
58
60
|
```
|
|
59
61
|
|
|
60
62
|
## Download
|
|
61
|
-
[Latest
|
|
63
|
+
[](https://github.com/palcarazm/bootstrap5-toggle/releases/latest)
|
|
64
|
+
|
|
65
|
+
## NPM
|
|
66
|
+
```ksh
|
|
67
|
+
npm install bootstrap5-toggle
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Yarn
|
|
71
|
+
```ksh
|
|
72
|
+
yarn add bootstrap5-toggle
|
|
73
|
+
```
|
|
62
74
|
|
|
63
75
|
# Usage
|
|
64
76
|
|
|
65
77
|
## Initialize With HTML
|
|
66
|
-
Simply add `data-toggle="toggle"` to automatically convert a plain checkbox into a bootstrap
|
|
78
|
+
Simply add `data-toggle="toggle"` to automatically convert a plain checkbox into a bootstrap 5 toggle.
|
|
67
79
|
|
|
68
80
|
```html
|
|
69
81
|
<input id="chkToggle" type="checkbox" data-toggle="toggle">
|