On this page
EventManagerPlugin
class
The plugin definition for the EventManager
class
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
|
_doc |
any |
Properties
Property | Description |
---|---|
manager: EventManager |
Methods
supports()
|
|||
---|---|---|---|
Should return |
|||
|
eventName |
string |
Returns
boolean
addEventListener()
|
|||||||||
---|---|---|---|---|---|---|---|---|---|
Implement the behaviour for the supported events |
|||||||||
|
element |
HTMLElement |
|
eventName |
string |
|
handler |
Function |
Returns
Function
© 2010–2023 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/platform-browser/EventManagerPlugin