LoadOptions
Options for loading data.
| Name | Type | Description |
|---|---|---|
| data? | any | Optional. JSON data to load directly. |
| dataType? | string | Optional dataType to pass in the request |
| error? | (e:any, status:any) => any | Optional function to call on load error. |
| headers? | Record<string,string> | Optional map of HTTP header values, if loading via URL. |
| incremental? | boolean | By default the model's load method is incremental, meaning it does not clear itself when loading new data. Set this flag to if you want the model to call after parsing the data (either passed in directly or having been retrieved from a url) and before loading it. |
| jsonp? | boolean | Optional, defaults to false. Tells VisuallyJs that the data is coming via JSON-P. |
| onload? | Function | Optional callback to execute once the data has loaded. Most often used when you are retrieving remote data (using ) |
| parameters? | Record<string,any> | Optional parameters to pass to the loader. |
| type? | string | Specifies the data type of the data to load. Defaults to . This must match the name of a loader registered with the given instance of VisuallyJs. |
| url? | string | URL to retrieve data from. Optional, but you need to supply either this or . |