BiEvent
The event class is the core class describing the event objects passed around in an event.
This class extends
BiObject
and therefore all methods and fields available for
BiObject
are also available for
BiEvent
.
Constructor
new
BiEvent
(
sType
)
Parameters
| Name | Type | Optional | Default | Descripton |
sType |
String |
The type (name) of the event. The argument is used
in the
addEventListener
to know which listeners to notify. |
Properties
| Name | Type | get | set | Descripton |
bubbles |
Boolean |
![]() |
Whether the event bubbles to the parent component. | |
currentTarget |
|
![]() |
The BiEventTarget that the event handler
was added to. This is not the same as the target in case the
event has bubbled. |
|
defaultPrevented |
Boolean |
![]() |
If the default event should be prevented. This becomes true after calling
preventDefault
|
|
propagationStopped |
Boolean |
![]() |
If the propagation has been stopped. This is true after stopPropagation
has been called and this means that bubbling events will not bubble up to
the parent of the current target component |
|
target |
|
![]() |
The BiEventTarget that initially
dispatched the event. |
|
type |
String |
![]() |
The type (name) of the event. |
Methods
| Name | Description |
preventDefault |
Some events have a default action associated with them and if so then calling this method will prevent that action from happening. |
stopPropagation |
If the event can bubble then this stops the propagation of the event
bubbling after all the listeners on the current
BiEventTarget have been notified. |
Events
None.
Static Methods
None.
Static Fields
None.
Remarks
Method Details
preventDefault
Some events have a default action associated with them and if so then calling this method will prevent that action from happening.
Syntax
object.preventDefault ( )
Parameters
No arguments.
Return Type
void
stopPropagation
If the event can bubble then this stops the propagation of the event
bubbling after all the listeners on the current
BiEventTarget have been notified.
Syntax
object.stopPropagation ( )
Parameters
No arguments.
Return Type
void
