gridstack - v12.3.3
    Preparing search index...

    Type Alias ColumnOptions

    ColumnOptions:
        | "list"
        | "compact"
        | "moveScale"
        | "move"
        | "scale"
        | "none"
        | (
            (
                column: number,
                oldColumn: number,
                nodes: GridStackNode[],
                oldNodes: GridStackNode[],
            ) => void
        )

    Different layout options when changing the number of columns.

    These options control how widgets are repositioned when the grid column count changes. Note: The new list may be partially filled if there's a cached layout for that size.

    Options:

    • 'list': Treat items as a sorted list, keeping them sequentially without resizing (unless too big)
    • 'compact': Similar to list, but uses compact() method to fill empty slots by reordering
    • 'moveScale': Scale and move items by the ratio of newColumnCount / oldColumnCount
    • 'move': Only move items, keep their sizes
    • 'scale': Only scale items, keep their positions
    • 'none': Leave items unchanged unless they don't fit in the new column count
    • Custom function: Provide your own layout logic