Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface EventHandler<R>

The event handler instance interface.

AskRoot => AskEvent => AskSelector => AskListener builds EventHandler

Type parameters

  • R: Element

    The type of the root element to which the event listener is attached.

Hierarchy

  • EventHandler

Index

Methods

eventType

  • eventType(): string

isAttached

  • isAttached(): boolean
  • Tells whether this handler is currently attached, ie. the listener is active.

    Returns boolean

isDestroyed

  • isDestroyed(): boolean
  • Tells whether the listener for this instance has been removed previously.

    Returns boolean

remove

  • remove(): void

root

  • root(): R
  • Returns the root element - the element to which the event listener is attached.

    Returns R

selector

  • selector(): string
  • Returns the CSS selector that is used to match against descendant elements.

    Returns string