Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CustomInput {
- //constructor with default values
- constructor({value = '', maxlength = 200, type = 'text', label = ''} = {}) {
- this._value = value;
- this.maxlength = maxlength;
- this.type = type;
- this.label = label;
- }
- get value() {
- return this._value;
- }
- set value(val) {
- this._value = ('' + val).toUpperCase().trim();
- }
- }
Add Comment
Please, Sign In to add comment