Class pwlib.appEvent
Custom application event.
Defined in: lib.js.
Constructor Attributes | Constructor Name and Description |
---|---|
pwlib.appEvent(type, cancelable)
|
Field Attributes | Field Name and Description |
---|---|
Tells if the event can be cancelled or not.
|
|
Tells if the event has the default action prevented or not.
|
|
Event target object.
|
|
Event type.
|
Method Attributes | Method Name and Description |
---|---|
Prevent the default action of the event.
|
|
Stop the event propagation to other event handlers.
|
|
toString()
|
Class Detail
pwlib.appEvent(type, cancelable)
- Parameters:
- {String} type
- Event type.
- {Boolean} cancelable Optional, Default: false
- Tells if the event can be cancelled or not.
- Throws:
- {TypeError}
- If the type parameter is not a string.
- {TypeError}
- If the cancelable parameter is not a string.
- See:
- pwlib.appEvents for the application events interface which allows adding and removing event listeners.
Field Detail
{Boolean}
cancelable
Tells if the event can be cancelled or not.
{Boolean}
defaultPrevented
Tells if the event has the default action prevented or not.
{Object}
target
Event target object.
{String}
type
Event type.
Method Detail
preventDefault()
Prevent the default action of the event.
stopPropagation()
Stop the event propagation to other event handlers.
toString()