bootstrap-input-spinner 3.1.5 → 3.1.9
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 +11 -7
- package/favicon.ico +0 -0
- package/index.html +15 -14
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ A Bootstrap / jQuery plugin to create input spinner elements for number input.
|
|
|
7
7
|

|
|
8
8
|
*Examples with floating-point and german localization*
|
|
9
9
|
|
|
10
|
-
> This version is compatible with Bootstrap 5
|
|
10
|
+
> This version is compatible with **Bootstrap 5**, but we remain a Bootstrap 4 compatible version with the branch
|
|
11
11
|
> <a href="https://github.com/shaack/bootstrap-input-spinner/tree/bootstrap4-compatible">bootstrap4-compatible</a>.
|
|
12
12
|
> npm package versions 3.x are Bootstrap 5 compatible, versions 2.x Bootstrap 4 compatible.
|
|
13
13
|
|
|
@@ -288,10 +288,14 @@ For older browsers (IE 9 or so), that doesn't support `Intl`, when you get an er
|
|
|
288
288
|
**"Intl is not defined"** (See [issue #34](https://github.com/shaack/bootstrap-input-spinner/issues/34)), just use a
|
|
289
289
|
shim or polyfill like [Intl.js](https://github.com/andyearnshaw/Intl.js), and it works.
|
|
290
290
|
|
|
291
|
-
#
|
|
291
|
+
# You may want to check out my further Bootstrap and HTML extensions
|
|
292
|
+
|
|
293
|
+
- [bootstrap-input-spinner](https://shaack.com/projekte/bootstrap-input-spinner/) – Input numbers
|
|
294
|
+
- [bootstrap-show-modal](https://shaack.com/projekte/bootstrap-show-modal/) – Show dialogs, dynamically
|
|
295
|
+
- [bootstrap-show-notification](https://shaack.com/projekte/bootstrap-show-notification/) – Show notifications, dynamically
|
|
296
|
+
- [bootstrap-detect-breakpoint](https://www.npmjs.com/package/bootstrap-detect-breakpoint) – Read the curr. BS BP from JS
|
|
297
|
+
- [auto-resize-textarea](https://shaack.com/projekte/auto-resize-textarea/) – Auto resize textareas by its content
|
|
298
|
+
- [external-links-blank](https://www.npmjs.com/package/external-links-blank) – Open all external links `_blank`
|
|
299
|
+
|
|
300
|
+
|
|
292
301
|
|
|
293
|
-
If you like this component, you may want to check out our other Bootstrap and HTML extensions
|
|
294
|
-
[**bootstrap-show-modal**](https://shaack.com/en/open-source-components),
|
|
295
|
-
[**bootstrap-detect-breakpoint**](https://shaack.com/en/open-source-components),
|
|
296
|
-
[**auto-resize-textarea**](https://shaack.com/en/open-source-components) and
|
|
297
|
-
[**external-links-blank**](https://shaack.com/en/open-source-components).
|
package/favicon.ico
ADDED
|
Binary file
|
package/index.html
CHANGED
|
@@ -110,8 +110,9 @@
|
|
|
110
110
|
read the value from JavaScript
|
|
111
111
|
with <code>val()</code></h3>
|
|
112
112
|
<p>
|
|
113
|
-
Type in a number to see the difference between <code>change</code> and
|
|
114
|
-
|
|
113
|
+
Type in a number to see the difference between <code>change</code> and <code>input</code> events.
|
|
114
|
+
</p>
|
|
115
|
+
<p>
|
|
115
116
|
<input type="number" id="changedInput" value="2500" min="0" max="5000000" data-decimals="2"/>
|
|
116
117
|
</p>
|
|
117
118
|
<p>
|
|
@@ -146,11 +147,11 @@ $changedInput.on("change", function (event) {
|
|
|
146
147
|
})</code></pre>
|
|
147
148
|
<h3>Programmatic changing the value with <code>val()</code></h3>
|
|
148
149
|
<p>
|
|
149
|
-
Net
|
|
150
|
+
<label for="inputNet">Net</label>
|
|
150
151
|
<input type="number" id="inputNet" value="100" min="0" max="10000" step="0.01" data-decimals="2"/>
|
|
151
152
|
</p>
|
|
152
153
|
<p>
|
|
153
|
-
Gross (+19%)
|
|
154
|
+
<label for="inputGross">Gross (+19%)</label>
|
|
154
155
|
<input type="number" id="inputGross" value="100" min="0" max="11900" step="0.01" data-decimals="2"/>
|
|
155
156
|
</p>
|
|
156
157
|
<script>
|
|
@@ -257,13 +258,13 @@ $inputGross.on("input", function (event) {
|
|
|
257
258
|
<code>form-control-lg</code>, and
|
|
258
259
|
the resulting group gets the class <code>input-group-sm</code> or <code>input-group-lg</code>.</p>
|
|
259
260
|
<p>
|
|
260
|
-
Small
|
|
261
|
-
<input class="form-control-sm" type="number" value="0.0" data-decimals="4" min="-1" max="1" step="0.0001"/>
|
|
261
|
+
<label for="inputSmall">Small</label>
|
|
262
|
+
<input id="inputSmall" class="form-control-sm" type="number" value="0.0" data-decimals="4" min="-1" max="1" step="0.0001"/>
|
|
262
263
|
</p>
|
|
263
264
|
<pre><code class="language-html"><input class="form-control-sm" type="number" value="0.0" data-decimals="4" min="-1" max="1" step="0.0001"/></code></pre>
|
|
264
265
|
<p>
|
|
265
|
-
Large
|
|
266
|
-
<input class="form-control-lg" type="number" value="1000000" data-decimals="0" min="0" max="2000000" step="1"/>
|
|
266
|
+
<label for="inputLarge">Large</label>
|
|
267
|
+
<input id="inputLarge" class="form-control-lg" type="number" value="1000000" data-decimals="0" min="0" max="2000000" step="1"/>
|
|
267
268
|
</p>
|
|
268
269
|
<pre><code class="language-html"><input class="form-control-lg" type="number" value="1000000" data-decimals="0" min="0" max="2000000" step="1"/></code></pre>
|
|
269
270
|
|
|
@@ -344,13 +345,13 @@ $dataDecimalsInput.on("change", function (event) {
|
|
|
344
345
|
|
|
345
346
|
<h3>Prefix and Suffix</h3>
|
|
346
347
|
<p>
|
|
347
|
-
Prefix
|
|
348
|
-
<input data-prefix="$" value="100.0" data-decimals="2" min="0" max="1000" step="0.1" type="number"/>
|
|
348
|
+
<label for="inputPrefix">Prefix</label>
|
|
349
|
+
<input id="inputPrefix" data-prefix="$" value="100.0" data-decimals="2" min="0" max="1000" step="0.1" type="number"/>
|
|
349
350
|
</p>
|
|
350
351
|
<pre><code class="language-html"><input data-prefix="$" value="100.0" data-decimals="2" min="0" max="1000" step="0.1" type="number" /></code></pre>
|
|
351
352
|
<p>
|
|
352
|
-
Suffix
|
|
353
|
-
<input data-suffix="°C" value="50" min="0" max="100" type="number"/>
|
|
353
|
+
<label for="inputSuffix">Suffix</label>
|
|
354
|
+
<input id="inputSuffix" data-suffix="°C" value="50" min="0" max="100" type="number"/>
|
|
354
355
|
</p>
|
|
355
356
|
<pre><code
|
|
356
357
|
class="language-html"><input data-suffix="°C" value="50" min="0" max="100" type="number" /></code></pre>
|
|
@@ -476,7 +477,7 @@ $inputLoop.on("input", function(event) {
|
|
|
476
477
|
</script>
|
|
477
478
|
|
|
478
479
|
<div class="card my-5 border-info">
|
|
479
|
-
<a href="https://shaack.com/
|
|
480
|
+
<a href="https://shaack.com/works">
|
|
480
481
|
<div class="card-body">
|
|
481
482
|
<h4 class="mb-2 mt-0">More Bootstrap components (from shaack.com)</h4>
|
|
482
483
|
You may want to check out our further Bootstrap extensions,
|
|
@@ -495,4 +496,4 @@ $inputLoop.on("input", function(event) {
|
|
|
495
496
|
$(".buttons-only").inputSpinner({buttonsOnly: true, autoInterval: undefined })
|
|
496
497
|
</script>
|
|
497
498
|
</body>
|
|
498
|
-
</html>
|
|
499
|
+
</html>
|
package/package.json
CHANGED