Rate this page:

ListenerOptions

Interface that specifies characteristics about the event listener

Methods

guard
Optional
Copy URL

Function that returns a boolean to determine if the listener should be called. The guard not set by default.

Parameters

  • event:

    EventList

Returns

  • type:

    boolean

Props

once
Optional
Copy URL

Whether a listener should be invoked at most once after being added. The default value is false.

signal
Optional
Copy URL

AbortSignal. The listener is removed when the abort() method of the AbortController which owns the AbortSignal is called. See AbortController for details.

Rate this page: