validationSummary.template String|Function

Specifies the template for rendering the validation summary.

Parameters

errors Array

The validation errors.

Example

<form id="myform">
    <input name="username" required /> <br />
    <button>Validate</button>
</form>

<script>
    $("#myform").kendoValidator({
      validationSummary: {
        template: ({ errors }) => `<ul>${errors.map(error => '<li><a data-field="' + error.field +'" href="#">' + error.message + '</a></li>')}</ul>`
      }
    });
</script>
In this article