Sortable
Sortable copied to clipboard
Group, put/pull under conditions
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
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.