gridstack - v12.3.3
    Preparing search index...

    Class DDResizable

    Interface for HTML elements extended with drag & drop options. Used to associate DD configuration with DOM elements.

    Hierarchy (View Summary)

    Implements

    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

    • Unregister an event callback for the specified event.

      Parameters

      • event: "resize" | "resizestart" | "resizestop"

        Event name to stop listening for

      Returns void

    • Register an event callback for the specified event.

      Parameters

      • event: "resize" | "resizestart" | "resizestop"

        Event name to listen for

      • callback: (event: DragEvent) => void

        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

    Properties

    The HTML element being extended

    option: DDResizableOpt = {}

    The drag & drop options/configuration