gridstack - v12.3.3
    Preparing search index...

    Type Alias AddRemoveFcn

    AddRemoveFcn: (
        parent: HTMLElement,
        w: GridStackWidget,
        add: boolean,
        grid: boolean,
    ) => HTMLElement | undefined

    Optional callback function called during load() operations. Allows custom handling of widget addition/removal for framework integration.

    Type declaration

      • (
            parent: HTMLElement,
            w: GridStackWidget,
            add: boolean,
            grid: boolean,
        ): HTMLElement | undefined
      • Parameters

        • parent: HTMLElement

          The parent HTML element

        • w: GridStackWidget

          The widget definition

        • add: boolean

          True if adding, false if removing

        • grid: boolean

          True if this is a grid operation

        Returns HTMLElement | undefined

        The created/modified HTML element, or undefined