Interface KnockoutValidationStatic

Index

Properties

Methods

Properties

public rules: KnockoutValidationRuleDefinitions

public utils: KnockoutValidationUtils

Methods

public addAnonymousRule(observable: KnockoutObservable, ruleObj: KnockoutValidationAnonymousRuleDefinition)

Parameters

public addExtender(ruleName: string)

Parameters

  • ruleName: string

public addRule(observable: KnockoutObservable, rule: KnockoutValidationRule): KnockoutObservable

Parameters

Returns

KnockoutObservable

public configure(options: KnockoutValidationConfiguration)

Parameters

public formatMessage(message: string, params: string): string

Parameters

  • message: string
  • params: string

Returns

string

public group(obj: any, options?: any): KnockoutValidationErrors

Parameters

  • obj: any
  • options?: any optional

Returns

KnockoutValidationErrors

public init(options?: KnockoutValidationConfiguration, force?: boolean)

Parameters

public insertValidationMessage(element: Element): Element

Parameters

  • element: Element

Returns

Element

public localize(msgTranslations: any)

Parameters

  • msgTranslations: any

public parseInputValidationAttributes(element: Element, valueAccessor: () => KnockoutObservable<any>)

Parameters

  • element: Element
  • valueAccessor: () => KnockoutObservable<any>

public registerExtenders()

public reset()

public validateObservable(observable: KnockoutObservable): boolean

Parameters

Returns

boolean