github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/ui/app/templates/components/stepper-input.hbs (about) 1 <label 2 data-test-stepper-label 3 for="stepper-input-{{this.elementId}}" 4 class="stepper-input-label">{{yield}}</label> 5 <input 6 data-test-stepper-input 7 type="number" 8 min={{this.min}} 9 max={{this.max}} 10 value={{this.internalValue}} 11 disabled={{this.disabled}} 12 id="stepper-input-{{this.elementId}}" 13 class="stepper-input-input" 14 onFocus={{action "selectValue"}} 15 onKeyDown={{action "resetTextInput"}} 16 onChange={{action "setValue"}}> 17 <button 18 data-test-stepper-decrement 19 role="button" 20 aria-label="decrement" 21 class="stepper-input-stepper button {{this.class}}" 22 disabled={{or this.disabled (lte this.internalValue this.min)}} 23 onclick={{action "decrement"}} 24 type="button"> 25 {{x-icon "minus-plain"}} 26 </button> 27 <button 28 data-test-stepper-increment 29 role="button" 30 aria-label="increment" 31 class="stepper-input-stepper button {{this.class}}" 32 disabled={{or this.disabled (gte this.internalValue this.max)}} 33 onclick={{action "increment"}} 34 type="button"> 35 {{x-icon "plus-plain"}} 36 </button>