Sortable icon indicating copy to clipboard operation
Sortable copied to clipboard

Group, put/pull under conditions

Open GuzlejM opened this issue 3 years ago • 1 comments

Hello I would like to put some conditions to group columns like:

You have 3 columns

col1 col2 col3

How I could make col2 to be able to put to col1 BUT disable col3 to be able put to col1.

Thank you

GuzlejM avatar Jul 09 '21 14:07 GuzlejM

Sortable.create(col1, {
  group: {
      name:'col1',
      pull:'col2'}
});
Sortable.create(col2, {
  group: {
      name:'col2',
      pull:'col3'}
});

Sortable.create(col3, {
  group: {
      name:'col3',
      pull: False}
});

I think will do what you want assuming nothing can be pulled into col3.

rouilj avatar Mar 22 '22 02:03 rouilj