gridstack - v12.3.3
    Preparing search index...

    Class DDBaseImplementAbstract

    Abstract base class for all drag & drop implementations. Provides common functionality for event handling, enable/disable state, and lifecycle management used by draggable, droppable, and resizable implementations.

    Hierarchy (View Summary)

    Index

    Accessors

    • get disabled(): boolean

      Returns the current disabled state. Note: Use enable()/disable() methods to change state as other operations need to happen.

      Returns boolean

    Constructors

    Methods

    • Destroy this drag & drop implementation and clean up resources. Removes all event handlers and clears internal state.

      Returns void

    • Disable this drag & drop implementation. Subclasses should override to perform additional cleanup.

      Returns void

    • Enable this drag & drop implementation. Subclasses should override to perform additional setup.

      Returns void

    • Unregister an event callback for the specified event.

      Parameters

      • event: string

        Event name to stop listening for

      Returns void

    • Register an event callback for the specified event.

      Parameters

      • event: string

        Event name to listen for

      • callback: EventCallback

        Function to call when event occurs

      Returns void

    • Trigger a registered event callback if one exists and the implementation is enabled.

      Parameters

      • eventName: string

        Name of the event to trigger

      • event: Event

        DOM event object to pass to the callback

      Returns boolean | void

      Result from the callback function, if any