Skip to content

Home > d3-blueprint > Layer > on

Layer.on() method

Registers a handler for the given lifecycle event.

Signature:

typescript
on(eventKey: LifecycleEventKey, handler: LifecycleHandler<TData> | TransitionHandler<TData>): this;

Parameters

Parameter

Type

Description

eventKey

LifecycleEventKey

handler

LifecycleHandler<TData> | TransitionHandler<TData>

Returns:

this