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 response 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