Extend Vaadin.CustomFieldElement to create your own custom element,
then override the checkValidity(value) method to validate the input.
Custom parser should be used for parsing the value into arrays of values for internal inputs. Custom formatter should be used for formatting the values of internal inputs to set it for the component.