Home > @xoram/plugin-panoramique > ComponentDefinitionHelpers > on
ComponentDefinitionHelpers.on property
Listen for an event emitted by the component. Multiple listeners can be bound on the same event by calling this function multiple time, invocation order is not guarantied.
Any handler set on a non-emit event will be bound on the component's root unless it is a fragment, see [Vue's guide on Fallthrough Attributes](https://vuejs.org/guide/components/attrs.html\#fallthrough-attributes).
Signature:
typescript
on: <event extends keyof HarnessListenableEvents<component>>(this: void, event: event, handler: NonNullable<HarnessListenableEvents<component>[event]>) => void;
1