github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/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"
     5  >{{yield}}</label>
     6  <input
     7    data-test-stepper-input
     8    type="number"
     9    min={{this.min}}
    10    max={{this.max}}
    11    value={{this.internalValue}}
    12    disabled={{this.disabled}}
    13    id="stepper-input-{{this.elementId}}"
    14    class="stepper-input-input"
    15    onFocus={{action "selectValue"}}
    16    onKeyUp={{action "resetTextInput"}}
    17    onChange={{action "setValue"}}
    18  />
    19  <button
    20    data-test-stepper-decrement
    21    role="button"
    22    aria-label="decrement"
    23    class="stepper-input-stepper button {{this.class}}"
    24    disabled={{or this.disabled (lte this.internalValue this.min)}}
    25    onclick={{action "decrement"}}
    26    type="button"
    27  >
    28    {{x-icon "minus-plain"}}
    29  </button>
    30  <button
    31    data-test-stepper-increment
    32    role="button"
    33    aria-label="increment"
    34    class="stepper-input-stepper button {{this.class}}"
    35    disabled={{or this.disabled (gte this.internalValue this.max)}}
    36    onclick={{action "increment"}}
    37    type="button"
    38  >
    39    {{x-icon "plus-plain"}}
    40  </button>