Skip to content

Swap rows between two columns #1980

Open
@Axxon

Description

@Axxon

Hello NicePeoplez.

I try to swap two items in two different column, but, without success, is this possible with this library ?

initial:

col1 |<>| col2
itemA1 |<>| itemB1 -> try to move a1 on right corner
itemA2 |<>| itemB2

expected result:

col1 |<>| col2
itemB2 |<>| itemB1
itemA2 |<>| itemA1

i tried:

  new Sortable(col1, {
    swap: true,
    group: cols
  });
  new Sortable(col2, {
    swap: true,
    group: cols
  });

But my result is like:

col1 |<>| col2
---- |<>| itemB1
itemA2 |<>| itemB2
---- | <> | itemA1 ---> deuhhh

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions