Resortable - v2.0.0-alpha.1
    Preparing search index...

    Interface SortableGroup

    Group configuration for sharing items between sortable lists

    Groups allow you to drag items between different sortable lists. You can control which lists can give/receive items and whether items are moved or cloned.

    const group: SortableGroup = {
    name: 'shared-list',
    pull: 'clone', // Clone items when dragging out
    put: true // Accept items from other lists
    };
    interface SortableGroup {
        name: string;
        pull?: boolean | string[] | "clone";
        put?: boolean | string[];
        revertClone?: boolean;
    }
    Index

    Properties

    name: string

    Name of the group

    pull?: boolean | string[] | "clone"

    Whether items can be dragged out of this list

    • true: Items can be moved out
    • false: Items cannot be dragged out
    • 'clone': Items are cloned when dragged out
    • string[]: Array of group names that can receive items
    put?: boolean | string[]

    Whether items can be dragged into this list

    • true: Accept items from any group
    • false: Don't accept items from other lists
    • string[]: Array of group names to accept items from
    revertClone?: boolean

    Revert cloned element to initial position after moving to another list

    false