[ Web Proxy ]
URL:
Viewing: https://angular.dev/api/platform-browser/EventManagerPlugin [Back]  [Original]

EventManagerPlugin Angular Skip to main content
menu
close
more_horiz
menuAPI
@angular/platform-browser

EventManagerPlugin

Class
stable

The plugin definition for the EventManager class

Extend event handling

On this page

    arrow_upward_alt Back to the top

    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;}
        
        

    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

    Web Proxy Viewer  |  New URL  |  Original Page