Component validations include field validations for input components. They are applied to each field explicitly based on the field data type and expected content for that field, starting from mandatory field validation to the field length validation to complex field expression validations. The following is an example of component validation using validators and required validators, which trigger validations on-value-changed:
- HTML:
<div id="sampleDemo" style="" class="demo-padding demo-container"> <div id="componentDemoContent" style="width: 1px; min-width: 100%;"> <div id="validation-usecase" class="oj-form oj-md-odd-cols-4 oj-md-labels-inline oj-sm-odd-cols-12"> <div class="oj-flex"> <div class="oj-flex-item"> ...