IDLeDOM
DOM interfaces automatically generated from WebIDL
Loading...
Searching...
No Matches
Wikimedia\IDLeDOM\EventTarget Interface Reference

EventTarget. More...

+ Inheritance diagram for Wikimedia\IDLeDOM\EventTarget:

Public Member Functions

void addEventListener (string $type, $callback, $options=null)
 
void removeEventListener (string $type, $callback, $options=null)
 
bool dispatchEvent ($event)
 

Detailed Description

EventTarget.

See also
https://dom.spec.whatwg.org/#interface-eventtarget

-forbid-undeclared-magic-properties

Member Function Documentation

◆ addEventListener()

void Wikimedia\IDLeDOM\EventTarget::addEventListener ( string $type,
$callback,
$options = null )
Parameters
string$type
EventListener | callable | null$callback
AddEventListenerOptions | associative-array | bool | null$options
Returns
void

◆ dispatchEvent()

bool Wikimedia\IDLeDOM\EventTarget::dispatchEvent ( $event)
Parameters
Event$event
Returns
bool

◆ removeEventListener()

void Wikimedia\IDLeDOM\EventTarget::removeEventListener ( string $type,
$callback,
$options = null )
Parameters
string$type
EventListener | callable | null$callback
EventListenerOptions | associative-array | bool | null$options
Returns
void

The documentation for this interface was generated from the following file: