Class Delegate

Index

Constructor methods

Methods

Constructor methods

constructor(element: HTMLElement): Delegate

Parameters

  • element: HTMLElement

Returns

Delegate

Methods

public destroy()

public off(eventType?: string, selector?: string, handler?: (event: Event, targetElement: Element) => void)

Parameters

  • eventType?: string optional
  • selector?: string optional
  • handler?: (event: Event, targetElement: Element) => void optional

public off(eventType?: string, selector?: (element: Element) => boolean, handler?: (event: Event, targetElement: Element) => void)

Parameters

  • eventType?: string optional
  • selector?: (element: Element) => boolean optional
  • handler?: (event: Event, targetElement: Element) => void optional

public on(eventType: string, selector: string, handler: (event: Event, targetElement: Element) => void, eventData?: any)

Parameters

  • eventType: string
  • selector: string
  • handler: (event: Event, targetElement: Element) => void
  • eventData?: any optional

public on(eventType: string, selector: (element: Element) => boolean, handler: (event: Event, targetElement: Element) => void, eventData?: any)

Parameters

  • eventType: string
  • selector: (element: Element) => boolean
  • handler: (event: Event, targetElement: Element) => void
  • eventData?: any optional

public on(eventType: string, handler: (event: Event, targetElement: Element) => void, eventData?: any)

Parameters

  • eventType: string
  • handler: (event: Event, targetElement: Element) => void
  • eventData?: any optional

public root(element?: Element)

Parameters

  • element?: Element optional