initializationException Event (WebTextSelectionToolJS)
In This Topic
Occurs when the visual tool initialization is failed.
Syntax
initializationException = 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.
Remarks
WebTextSelectionToolJS fires this event in the following situations:
- Request for getting information about text region of specified image was failed. In this case eventArgs will have the following parameters:
- description (string): "Get text region" string constant.
- errorMessage (string): Error message.
- image (object): The WebImageJS object, from image viewer collection.
Browser Compatibility
See Also