Search
MockDataSource Members
Constructors Properties Methods
 


A data source that generates realistic mock data based on dashboard widget configurations and mockOptions.

The following tables list the members exposed by the MockDataSource type.

 Public Constructors

  Name Description

MockDataSource

Initializes a new instance of the MockDataSource class.

 Public Properties

  Name Description

loaded

Gets a value indicating whether data has been loaded. (Inherited from DataSource.)

refreshInterval

Gets or sets the automatic refresh interval in milliseconds. (Inherited from DataSource.)

 Public Methods

  Name Description

generateForWidget

Generates mock data for the specified widget

generateFromDashboard

Generates a mock data tree matching the data paths of all widgets bound to this data source.

getKeys

Retrieves the available keys at the specified path. (Inherited from DataSource.)

getValue

Retrieves a value from the cached data object using a dot-separated path. (Inherited from DataSource.)

load

When implemented in a derived class, fetches the data. (Inherited from DataSource.)

refresh

Refreshes the data by calling the load() method, caches the result in the 'data' property, and returns it. (Inherited from DataSource.)

 See Also