turbodombuilder - v0.9.58
    Preparing search index...

    Type Alias PreventDefaultOptions

    Options for TurboSelector.preventDefault, which prevents default browser behaviors for selected event types and can optionally stop propagation.

    type PreventDefaultOptions = {
        types?: string[];
        phase?: "capture" | "bubble";
        stop?: false | "stop" | "immediate";
        preventDefaultOn?: (type: string, e: Event) => boolean;
        clearPreviousListeners?: boolean;
        manager?: TurboEventManager;
    }
    Index

    Properties

    types?: string[]

    List of event types to affect. If omitted, defaults to BasicInputEvents.

    phase?: "capture" | "bubble"

    Which phase to prevent. Defaults to "bubble".

    stop?: false | "stop" | "immediate"

    Whether to stop propagation when handling the event:

    • false: do not stop propagation,
    • "stop": call stopPropagation,
    • "immediate": call stopImmediatePropagation.
    preventDefaultOn?: (type: string, e: Event) => boolean

    Predicate to decide (per event) whether to call preventDefault. Return true to prevent default for that event.

    clearPreviousListeners?: boolean

    If true, clears previously installed prevent-default listeners before installing new ones.

    Event manager to use. Defaults to TurboEventManager.instance.