ImageElementView

ImageElementView

The View for the ImageElement. It has two ImageElementView-specific properties.

Members

# onload :Array

If the view has a property named onload, it is assumed to be a two-element array whose first element specifies the name of an expander installed on this view, and the second element specifies a method name in the expander. The designated method is invoked when the native DOM img element succeeds in loading an image.

Type:
  • Array
Example:
this.onload = ["ImageLoadNotifier", "onLoad"];

# onerror :Array

If the view has a property named onerror, it is assumed to be a two-element array whose first element specifies the name of an expander installed on this view, and the second element specifies a method name in the expander. The designated method is invoked when the native DOM img element encounters an error.

Type:
  • Array
Example:
this.onerror = ["ImageLoadNotifier", "onError"];