Skip to main content

loadError

fires when loading of data fails

loadError: (response: any) => void;

Parameters:

response: string | object - info about the error

Example

component.data.events.on("LoadError", function(error){    // your code here});

The error parameter can be either a string with the text of an error, or an object with two properties:

  • status - the code of an error
  • text - the text of an error