Skip to content

Commit

Permalink
Merge pull request #417 from rosteen/support-step-in-float-field
Browse files Browse the repository at this point in the history
Support setting step value in glue-float-field
  • Loading branch information
dhomeier committed Jan 9, 2024
2 parents b515772 + bda279d commit ed24ff3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion glue_jupyter/widgets/glue_float_field.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<v-text-field
:label="label"
:suffix="suffix"
:step="step"
v-model="displayValue"
type="number"
:rules="[validNumber]"
Expand All @@ -13,7 +14,7 @@
Only when `value` is changed externally, `displayValue` will be update according to the current `value`.
*/
module.exports = {
props: ['value', 'label', 'suffix'],
props: ['value', 'label', 'suffix', 'step'],
data: function() {
return {
// default value is the one that was intially passed
Expand Down

0 comments on commit ed24ff3

Please sign in to comment.