Here is a Dojo example that demonstrates the above. Important to outline is that when custom editors are rendered, the validation attributes need to be manually added to the input element in order for the validation functionality to work as expected.
In case you have any additional questions, please let me know.
Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic. Our thoughts here at Progress are with those affected by the outbreak.