Interface KnockoutValidationUtils

Index

Methods

Methods

public contextFor(node: Element): KnockoutValidationConfiguration

Parameters

  • node: Element

Returns

KnockoutValidationConfiguration

public getConfigOptions(element: Element): KnockoutValidationConfiguration

Parameters

  • element: Element

Returns

KnockoutValidationConfiguration

public getDomData(node: Element): KnockoutValidationConfiguration

Parameters

  • node: Element

Returns

KnockoutValidationConfiguration

public getValue(o: any): any

Parameters

  • o: any

Returns

any

public hasAttribute(node: Element, attr: string): boolean

Parameters

  • node: Element
  • attr: string

Returns

boolean

public insertAfter(node: Element, newNode: Element)

Parameters

  • node: Element
  • newNode: Element

public isArray(o: any): boolean

Parameters

  • o: any

Returns

boolean

public isEmptyVal(val: any): boolean

Parameters

  • val: any

Returns

boolean

public isObject(o: any): boolean

Parameters

  • o: any

Returns

boolean

public isValidatable(o: any): boolean

Parameters

  • o: any

Returns

boolean

public newId(): number

Returns

number

public setDomData(node: Element, data: KnockoutValidationConfiguration)

Parameters

public values(o: any): Array<any>

Parameters

  • o: any

Returns

Array<any>