Base interface for all "Before" event arguments. Handlers can set cancel = true to prevent the default behavior.
cancel = true
onBeforeClick(args: BeforeEventClickArgs) { if (!this.userHasPermission()) { args.cancel = true; // Prevents the click action }} Copy
onBeforeClick(args: BeforeEventClickArgs) { if (!this.userHasPermission()) { args.cancel = true; // Prevents the click action }}
Set to true to cancel the default behavior. Default value is false.
true
false
Base interface for all "Before" event arguments. Handlers can set
cancel = trueto prevent the default behavior.Example