Class pwlib.appEvent.toolPreactivate
Extends
pwlib.appEvent.
Tool preactivation event. This event is cancelable.
Defined in: lib.js.
Constructor Attributes | Constructor Name and Description |
---|---|
pwlib.appEvent.toolPreactivate(id, prevId)
|
Field Attributes | Field Name and Description |
---|---|
Tool ID.
|
|
Previous tool ID.
|
- Fields borrowed from class pwlib.appEvent:
- cancelable, defaultPrevented, target, type
- Methods borrowed from class pwlib.appEvent:
- preventDefault, stopPropagation, toString
Class Detail
pwlib.appEvent.toolPreactivate(id, prevId)
- Parameters:
- {String} id
- The ID of the new tool being activated.
- {String|null} prevId
- The ID of the previous tool.
- Throws:
- {TypeError}
- If the id is not a string.
- {TypeError}
- If the prevId is not a string or null.
Field Detail
{String}
id
Tool ID.
{String}
prevId
Previous tool ID.