Crestron Components Lib - Showcase App

ch5-textinput: minValue & maxValue attributes

usage of minValue attribute
used only for input[type="number"] elements.
to make the input valid you have to pass a value greater than 10. By submitting the form you'll see a error message if the value is lower than 10.
<form id="minValueForm">
  <ch5-textinput
    type="number"
    required
    minValue="10"
    feedbackMode="submit"
  ></ch5-textinput>
  <input type="submit" />
</form>
usage of maxValue attribute
used only for input[type="number"] elements. to make the input valid you have to pass a value lower than 10 also by submitting the form you will get a error message if the value is lower than 10.
<form id="maxValueForm">
  <ch5-textinput
    type="number"
    maxValue="10"
    required
    feedbackMode="submit"
  ></ch5-textinput>
  <input type="submit" />
</form>
usage of minValue attribute within a input[type="text"] element
Result: you should not see the min attribute on the input. ( Inspect input element in order to see that )
<ch5-textinput
  minValue="10"
  feedbackMode="submit"
></ch5-textinput>