Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
Say hello to Angular's future home!Check out Angular.devHome
/

EventManagerPlugin

The plugin definition for the EventManager class

See more...

      
      abstract class EventManagerPlugin {
  constructor(_doc: any)
  manager: EventManager
  abstract supports(eventName: string): boolean
  abstract addEventListener(element: HTMLElement, eventName: string, handler: Function): Function
}
    

Description

It can be used as a base class to create custom manager plugins, i.e. you can create your own class that extends the EventManagerPlugin one.

Constructor

      
      constructor(_doc: any)
    
Parameters
_doc any

Properties

Property Description
manager: EventManager

Methods

Should return true for every event name that should be supported by this plugin

      
      abstract supports(eventName: string): boolean
    
Parameters
eventName string
Returns

boolean

Implement the behaviour for the supported events

      
      abstract addEventListener(element: HTMLElement, eventName: string, handler: Function): Function
    
Parameters
element HTMLElement
eventName string
handler Function
Returns

Function