• Overview
@angular/platform-browser

EventManagerPlugin

Class
stable

The plugin definition for the EventManager class

API

    
      abstract class EventManagerPlugin {  constructor(_doc: any): EventManagerPlugin;  manager: EventManager;  abstract supports(eventName: string): boolean;  abstract addEventListener(element: HTMLElement, eventName: string, handler: Function, options?: ListenerOptions | undefined): Function;}
    
    

constructor

EventManagerPlugin
@param_docany

supports

boolean

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

@parameventNamestring
@returnsboolean

addEventListener

Function

Implement the behaviour for the supported events

@paramelementHTMLElement
@parameventNamestring
@paramhandlerFunction
@paramoptionsListenerOptions | undefined
@returnsFunction

Description

The plugin definition for the EventManager class

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.

Jump to details