Skip to content

Interface: EventHandle

API / @xmachines/play-dom / EventHandle

Defined in: packages/play-dom/src/json-render/types.ts:201

Handle returned by ComponentContext.on(eventName).

Properties

PropertyTypeDescriptionDefined in
boundbooleantrue if an on binding exists for this event name; false otherwise.packages/play-dom/src/json-render/types.ts:209
emit() => voidFire the bound action, resolving params from the current state store.packages/play-dom/src/json-render/types.ts:203
shouldPreventDefaultbooleanWhether any binding for this event has preventDefault: true.packages/play-dom/src/json-render/types.ts:207