Crestron Components Lib - Showcase App

ch5-textinput: minLength & maxLength attributes

usage of minLength attribute
used along with feedbackMode='submit'
in the example bellow by entering less than 10 characters you will not be able to submit the form.
<form id="minLengthForm">
    <ch5-textinput
      minLength="10"
      required
      feedbackMode="submit">
    
    </ch5-textinput>
    <input type="submit" />
</form>
usage of maxLength attribute used along with feedbackMode='submit'
in the example bellow you will not be able to pass more than 20 characters in the input.
<form id="maxLengthForm">
    <ch5-textinput
      maxLength="20"
      required
      feedbackMode="submit">
    </ch5-textinput>
    <input type="submit" />
  </form>
usage of maxLength attribute without feedbackMode
Result: you should not see the maxLength attribute on the input that's because
the minlength and maxLength attributes are used along with feedbackMode="submit" (open inspect element to see that).
<ch5-textinput
  maxLength="20"
>
</ch5-textinput>