Interface IBaseControl
Properties list
Methods list
Properties
el
The HTMLElement at the root of the control's element hierarchy
Declaration
readonly el: HTMLElement;
Property Value
| Type | Description |
|---|---|
| HTMLElement |
Methods
addEventListener(ev, listener)
Register an event handler for a particular kind of event
Declaration
addEventListener(ev: string, listener: (ev: Event) => any): void;
Parameters
| Type | Name | Description |
|---|---|---|
| string | ev |
the name of the event for which a listener should be attached |
| (ev: Event) => any | listener |
an event handler function |
Returns
| Type | Description |
|---|---|
| void |
removeEventListener(ev, listener)
Deregister the supplied event handler function from the specified event kind.
Declaration
removeEventListener(ev: string, listener: (ev: Event) => any): void;
Parameters
| Type | Name | Description |
|---|---|---|
| string | ev |
the name of the event from which to remove the supplied listener |
| (ev: Event) => any | listener |
the handle function to remove |
Returns
| Type | Description |
|---|---|
| void |