API Reference > imodeljs-frontend > Views > Decorator > onDecorationButtonEvent onDecorationButtonEvent MethodOptional If Decorator.testDecorationHit returned true, implement this method to handle a button event for this Decorator. onDecorationButtonEvent(hit: HitDetail, ev: BeButtonEvent): Promise<EventHandled> 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 44 Last Updated: 13 June, 2024