Member Junction
    Preparing search index...

    Generic wrapper for cancelable events emitted by clustering components.

    The component emits a CancelableEvent<T> before performing a side-effect. The consumer can inspect Data, and set Cancel = true to prevent the default behavior.

    <mj-cluster-scatter
    (BeforePointClick)="onBeforeClick($event)">
    </mj-cluster-scatter>
    onBeforeClick(event: CancelableEvent<ClusterPoint>): void {
    if (event.Data.ClusterId === -1) {
    event.Cancel = true; // suppress click on outliers
    }
    }
    interface CancelableEvent<T = unknown> {
        Cancel: boolean;
        Data: T;
    }

    Type Parameters

    • T = unknown

      Payload type carried by the event.

    Index

    Properties

    Properties

    Cancel: boolean

    Set to true to cancel the default operation that would follow.

    Data: T

    The event payload.