setupValidator | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Function setupValidator

    • Set up a custom validator

      Type Parameters

      • NodeType extends HTMLElement

      Parameters

      • node: NodeType

        Form element to validate

      • checker: FieldValidator<NodeType>

        Sync or async function that returns a string with an error message or undefined if the field is valid.

      Returns void