oreesh-input Class
Input
// Can be created dynamically
var input = new OreeshInput();
<!-- Or via HTML -->
<oreesh-input value="hello"></oreesh-dialog>
Item Index
Attributes
length-invalid
Boolean
Read-only property representing the state of the value with respect to the min-length and max-length attributes.
max-length
Number
You may specify the maximum length of the value of the oreesh-input. If the value's length is greater than the max-length, the invalid styling is applied, and the invalid-length attribute is set to true.
min-length
Number
You may specify the minimum length of the value of the oreesh-input. If the value's length is less than the min-length, the invalid styling is applied, and the invalid-length attribute is set to true.
pattern
String
A string representing a regualar expression. This is inteded for validating the value of the of the oreesh-input.
The value of the oreesh-input is checked on every keyup event and keydown event; if the value doesn't match the pattern, the invalid styling is applied, and the pattern-invalid attribute is set to true.
Examples:
<!-- Only letters -->
<oreesh-input pattern="^[a-zA-Z]*$"></oreesh-input>
<!-- Contains the substring 'tyler' -->
<oreesh-input pattern="tyler"></oreesh-input>
