Skip to content

Commit

Permalink
Adding inputs with decimals
Browse files Browse the repository at this point in the history
  • Loading branch information
istvan-ujjmeszaros committed May 25, 2023
1 parent 6d63f28 commit 8bc7251
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
21 changes: 21 additions & 0 deletions __tests__/html/index-bs3.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,27 @@
</script>
</div>

<div class="wrapper">
<label for="testinput_number">#testinput_number:</label>
<input id="testinput_number" type="number" value="50" name="testinput_number">

<script>
$("#testinput_number").TouchSpin();
</script>
</div>

<div class="wrapper">
<label for="testinput_decimals">#testinput_decimals:</label>
<input id="testinput_decimals" type="number" value="50" name="testinput_decimals">

<script>
$("#testinput_decimals").TouchSpin({
decimals: 2,
step: 0.01
});
</script>
</div>

<div class="wrapper">
<label for="testinput_step10_min">#testinput_step10_min:</label>
<input id="testinput_step10_min" type="text" value="0" name="testinput_step10_min">
Expand Down
21 changes: 21 additions & 0 deletions __tests__/html/index-bs4.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,27 @@
</script>
</div>

<div class="wrapper">
<label for="testinput_number">#testinput_number:</label>
<input id="testinput_number" type="number" value="50" name="testinput_number">

<script>
$("#testinput_number").TouchSpin();
</script>
</div>

<div class="wrapper">
<label for="testinput_decimals">#testinput_decimals:</label>
<input id="testinput_decimals" type="number" value="50" name="testinput_decimals">

<script>
$("#testinput_decimals").TouchSpin({
decimals: 2,
step: 0.01
});
</script>
</div>

<div class="wrapper">
<label for="testinput_step10_min">#testinput_step10_min:</label>
<input id="testinput_step10_min" type="text" value="0" name="testinput_step10_min">
Expand Down

0 comments on commit 8bc7251

Please sign in to comment.