changed Событие (WebImageCollectionJS)
В этом разделе
Occurs when image collection is changed.
Синтаксис
var instance; // Type: WebImageCollectionJS
instance.changed = function(event) { }
changed = function (
: object
: object
) { };
Parameters
- event
- Object that contains information about event. Object has the following properties:
- target (object): An object that raised the event.
- type (string): Event name.
- data (object): An object that contains data, which were specified when subscribing to the event.
- originalEvent (object): Original event if event was received from DOM-element.
- eventArgs
- Object that contains event arguments. Object has the following properties:
- actionName (string): Action name. Supported values: "clear", "insert", "insertRange", "swap", "removeAt", "removeRange", "set".
- imageIndex (number): Zero-based image index in collection. Property is defined for actions "insert", "insertRange", "removeAt" and "set".
- imagesIndexes (object): Indexes of images, that must be removed. Property is defined for actions "removeRange" and "swap".
- image (object): WebImageJS object, which must be inserted/removed/set. Property is defined for actions "insert", "removeAt" and "set".
- images (object): WebImageJS objects, which must be inserted/removed. Property is defined for actions "insertRange", "swap", "removeRange" and "clear".
- previousImage (object): Previous WebImageJS object. Property is defined for action "set".
Смотрите также