onDecorationButtonEvent MethodOptional
If Decorator.testDecorationHit or Decorator.overrideElementHit returned true, implement this method to handle a button event for this Decorator.
onDecorationButtonEvent(hit: HitDetail, ev: BeButtonEvent): Promise<EventHandled>
@returns A Promise that resolves to Yes if event completely handled by decoration and event should not be processed by the calling tool.
Parameter | Type | Description |
---|---|---|
hit | HitDetail | The HitDetail about the decoration that was picked. |
ev | BeButtonEvent | The BeButtonEvent that identified this decoration. |
Returns - Promise<EventHandled>
A Promise that resolves to Yes if event completely handled by decoration and event should not be processed by the calling tool.
Defined in
- core/frontend/src/ViewManager.ts Line 52
Last Updated: 16 April, 2024
Found something wrong, missing, or unclear on this page?
Raise an issue in our repo.