import { PropertyValidator } from "nativescript-ui-dataform" ; export class ExactTextValidator extends PropertyValidator { constructor ( ) { super ( ) ; this . errorMessage = "Please enter: admin1" ; } public validate ( value , propertyName ) { return value . toLowerCase ( ) === "admin1" ; } }