Wijmo UI for the Web
registerDataViewFactory Method
wijmo.data Namespace : registerDataViewFactory Method
A function that creates a IDataView for a data source if possible. Otherwise returns null.
Registers a new IDataView provider.
Syntax
var value; // Type: any

// Parameters
var factory; // Type:  IDataViewFactory

value = wijmo.data.registerDataViewFactory(factory);
function registerDataViewFactory( 
   factory : IDataViewFactory
) : any;

Parameters

factory
A function that creates a IDataView for a data source if possible. Otherwise returns null.

Return Value

An IDisposable that can be used to remove the registration.
Remarks
Use this method to provide your own IDataView implementation for a specific data source. See wijmo.data.breeze.ts for an example.