turbodombuilder - v0.9.5
    Preparing search index...

    Type Alias ToolBehaviorCallback

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

    Type Declaration

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

        • event: Event

          The original DOM/Turbo event.

        • target: Node

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

        • Optionaloptions: any

          Additional info (embedded context, etc.).

        Returns boolean

        Whether the behavior handled the action.

    Function signature for a tool behavior. Returning true marks the behavior as handled/consumed.