Options
All
  • Public
  • Public/Protected
  • All
Menu

Input components that call useValidation should generally have their Props interface extend this.

Type parameters

  • TValue

Hierarchy

Index

Properties

Optional asyncValidator

asyncValidator?: AsyncValidator<TValue>

Optional defaultValue

defaultValue?: TValue

Optional formLevelValidatorOutput

formLevelValidatorOutput?: ValidatorOutput

name

name: string

showValidation

showValidation: boolean

Optional validationKey

validationKey?: string | number | boolean

validators

validators: Validator<TValue>[]

Optional value

value?: TValue

Methods

Optional onAsyncError

  • onAsyncError(e: unknown): void
  • defaults to onError from ItiReactCoreContext

    Parameters

    • e: unknown

    Returns void

Optional onChange

  • onChange(value: TValue): void
  • Parameters

    • value: TValue

    Returns void

Optional onValidChange

  • onValidChange(name: string, valid: boolean): void
  • Parameters

    • name: string
    • valid: boolean

    Returns void

Generated using TypeDoc