Skip to main content
Version: 8.1

Method declaration example

Level: intermediate
Example

Add the Email column validation logic to the logic of the setValidationConfig method located in the Terrasoft.configuration.BaseSchemaViewModel class.

methods: {
/* Method name. */
setValidationConfig: function() {
/* Call the setValidationConfig method of the parent schema. */
this.callParent(arguments);
/* Set up validation for the [Email] column. */
this.addColumnValidator("Email", EmailHelper.getEmailValidator);
}
}