Interface KnockoutMapping

Index

Methods

Methods

public defaultOptions(): KnockoutMappingOptions

Returns

KnockoutMappingOptions

public fromJS(jsObject: any): any

Parameters

  • jsObject: any

Returns

any

public fromJS(jsObject: any, targetOrOptions: any): any

Parameters

  • jsObject: any
  • targetOrOptions: any

Returns

any

public fromJS(jsObject: any, inputOptions: any, target: any): any

Parameters

  • jsObject: any
  • inputOptions: any
  • target: any

Returns

any

public fromJSON(jsonString: string): any

Parameters

  • jsonString: string

Returns

any

public fromJSON(jsonString: string, targetOrOptions: any): any

Parameters

  • jsonString: string
  • targetOrOptions: any

Returns

any

public fromJSON(jsonString: string, inputOptions: any, target: any): any

Parameters

  • jsonString: string
  • inputOptions: any
  • target: any

Returns

any

public getType(x: any): any

Parameters

  • x: any

Returns

any

public isMapped(viewModel: any): boolean

Parameters

  • viewModel: any

Returns

boolean

public resetDefaultOptions()

public toJS(rootObject: any, options?: KnockoutMappingOptions): any

Parameters

Returns

any

public toJSON(rootObject: any, options?: KnockoutMappingOptions): any

Parameters

Returns

any

public visitModel(rootObject: any, callback: Function, options?: { visitedObjects?: any; parentName?: any; ignore?: any; copy?: any; include?: any; }): any

Parameters

  • rootObject: any
  • callback: Function
  • options?: { visitedObjects?: any; parentName?: any; ignore?: any; copy?: any; include?: any; } optional

Returns

any