Base interface for all "Before" event arguments. Handlers can set cancel = true to prevent the default behavior.

Example

onBeforeClick(args: BeforeEventClickArgs) {
if (!this.userHasPermission()) {
args.cancel = true; // Prevents the click action
}
}
interface BeforeEventArgs {
    cancel: boolean;
}

Hierarchy (view full)

Properties

Properties

cancel: boolean

Set to true to cancel the default behavior. Default value is false.