Interface useListenerOptions

Additional options for a listener.

interface useListenerOptions {
    fireOnModelChange?: boolean;
    once?: boolean;
    transactional?: boolean;
}

Hierarchy (view full)

Properties

fireOnModelChange?: boolean

Will also fire the listener when the model changes. (with a null event)

once?: boolean

If true, the listener will be removed after the first time it is called.

Default Value

false;
transactional?: boolean

If true the listener will will be wrapped in the transaction. This means that an undo/redo will add/remove the listener.