Javascript: InputFormat.removeEventListener Method
Description
The removeListener function removes the specified event listener from the InputFormat object.
Syntax
<void> InputFormat.removeEventListener(<string> eventName, <function> callback)Parameters
| Parameter | Description |
|---|---|
| eventName | The event name. (For possible event names see addEventListener) |
| callback | The event listener function to remove from the internal list of registered event listeners. |
Examples
The following example demonstrates InputFormat.removeEventListener in a practical document-editing workflow. The removeListener function removes the specified event listener from the InputFormat object.
TXTextControl.inputFormat.removeEventListener(
"textControlLoaded",
function() {
console.log("remove event listener completed.");
}
);