turbodombuilder - v0.9.22
    Preparing search index...

    Type Alias ToolBehaviorCallback

    ToolBehaviorCallback: (
        event: Event,
        target: Node,
        options?: ToolBehaviorOptions,
    ) => boolean | any

    Type Declaration

      • (event: Event, target: Node, options?: ToolBehaviorOptions): boolean | any
      • Parameters

        • event: Event

          The original DOM/Turbo event.

        • target: Node

          The node the behavior should operate on (the object or its embedded target).

        • Optionaloptions: ToolBehaviorOptions

          Additional info (embedded context, etc.).

        Returns boolean | any

        • Whether to stop the propagation.

    Function signature for a tool behavior. Returning true marks the behavior as handled/consumed, leading to stopping the propagation of the event.