DS Server

Javascript: InputFormat.removeEventListener Method

Method|Introduced in 28.0

Description

The removeListener function removes the specified event listener from the InputFormat object.

Syntax

<void> InputFormat.removeEventListener(<string> eventName, <function> callback)

Parameters

ParameterDescription
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.");
    }
);