Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Document

Add methods for document object

Hierarchy

  • Document

Index

Methods

Methods

off

  • off(type?: string, listener?: (this: Document, e: Event) => boolean | void): this
  • Parameters

    • Optional type: string
    • Optional listener: (this: Document, e: Event) => boolean | void
        • (this: Document, e: Event): boolean | void
        • Parameters

          Returns boolean | void

    Returns this

on

  • on(type: string, listener: (this: Document, e: Event) => boolean | void, useCapture?: boolean): this
  • on(type: string, listener: (this: Document, e: Event) => boolean | void, options?: { capture?: boolean; once?: boolean; passive?: boolean }): this
  • Parameters

    • type: string
    • listener: (this: Document, e: Event) => boolean | void
        • (this: Document, e: Event): boolean | void
        • Parameters

          Returns boolean | void

    • Optional useCapture: boolean

    Returns this

  • Parameters

    • type: string
    • listener: (this: Document, e: Event) => boolean | void
        • (this: Document, e: Event): boolean | void
        • Parameters

          Returns boolean | void

    • Optional options: { capture?: boolean; once?: boolean; passive?: boolean }
      • Optional capture?: boolean
      • Optional once?: boolean
      • Optional passive?: boolean

    Returns this