cancellableEvent.isDefaultPrevented: Difference between revisions
Jump to navigation
Jump to search
m (Mex moved page event.isDefaultPrevented to cancellableEvent.isDefaultPrevented) |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{ | {{ScriptItem2 | ||
| | |name = isDefaultPrevented | ||
|side = shared | |||
|type = method | |type = method | ||
|class = | |class = CancellableEvent | ||
| | |games = iii vc sa iv | ||
| | |desc = check if the default action for the event trigger occurrence has been prevented by resources or plugins | ||
|return = bool true if the default action has been prevented, false otherwise | |||
|freturn = bool false | |||
| | |||
| | |||
}} | }} |
Latest revision as of 20:36, 19 November 2022
Method
Server and Client
Online and Offline
Available since Server 1.0.0, Client 1.0.0
bool cancellableEvent.isDefaultPrevented(void)
The cancellableEvent.isDefaultPrevented method is used to check if the default action for the event trigger occurrence has been prevented by resources or plugins.
Parameters
void | This method doesn't take any parameters. |
Return
bool | True if the default action has been prevented, false otherwise. |
Types
Shared
CancellableEvent
Notes
There aren't any notes for this method.
Examples
There aren't any examples for this method.
Compatibility
There isn't any compatibility information for this method.
Related
Server Related
addEvent
addEventHandler
bindEventHandler
removeEventHandler
triggerEvent
triggerNetworkEvent
unbindEventHandler
Client Related
addEvent
addEventHandler
bindEventHandler
removeEventHandler
triggerEvent
triggerNetworkEvent
unbindEventHandler