Skip to content

Commit

Permalink
Add u8 widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
c12i committed Dec 13, 2024
1 parent bbba8d1 commit 1ed9fcf
Show file tree
Hide file tree
Showing 16 changed files with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
${ {{variable_to_read}} }
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<label for="{{label}}">{{label}}</label>
<input
name="{{label}}"
type="range"
min="0"
max="255"
.value=${ {{variable_to_read}} }
@change=${(e: any) => { {{variable_to_change}} = e.detail.value; } }
>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
true
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ {{variable_to_read}} }
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<label htmlFor="{{label}}">{{label}}</label>
<input type="number" name="{{label}}" {{#if variable_to_read}}value={ {{variable_to_read}} }{{/if}} onChange={e => set{{pascal_case variable_to_change}}(parseInt(e.target.value))} min="0" max="255" />
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
true
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ {{variable_to_read}} }
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<label for="{{label}}">{{label}}</label>
<input name=""{{label}} type="range" min="0" max="255" bind:value="{{variable_to_read}}" />
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
true
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{{{raw}}}} {{ {{{{/raw}}}} {{variable_to_read}} {{{{raw}}}} }} {{{{/raw}}}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<label for="{{label}}">{{label}}</label>
<input name=""{{label}} type="range" min="0" max="255" v-model="{{variable_to_read}}" />
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
true

0 comments on commit 1ed9fcf

Please sign in to comment.