Hi,
I have the following issue :
I have 2 classes of elements which can be dragged/dropped - lineitem and
mandatorylineitem.
I have 2 goups - optional and mandatory. I do not want the mandatory
items to be dragged and dropped into the optional group. I create the
Sortables in the following manner :
Sortable.create(‘group_1’,{tag:‘div’,dropOnEmpty: true, containment:
[‘group_2’],only:[‘mandatorylineitem’,‘lineitem’]});
Sortable.create(‘group_2’,{tag:‘div’,dropOnEmpty: true, containment:
[‘group_1’],only:‘lineitem’});
But, to no avail. Could someone help me regarding this. Probably I
havent understood the meaning of the “only” option for Sortable.create.