Skip to content

Tapestry API


on(eventName, handler): void

Defined in: types.d.ts:60

Registers a listener for a reactive event.

Parameters

eventName

string

The name of the event to listen for.

handler

(payload) => void

The function to call when the event is emitted.

Returns

void