You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a question regarding "placeholders". Do I have to set some sort of group attribute to enable that the group has a placeholder in case all the items are removed from this group?
I'm using elements of one table as a group and "tr"s as group elements.
For example if I have two groups, A and B, and I can move items from one group to another. And if I move all items from group A to B, (group A is now empty) but than decide to move some items back from B to A, I cannot do this anymore. It is like that group A is not active anymore.
When you move the element from "EUR Warenkorb" to "Bonuspunkte Warenkorb" you cannot add anything back to "EUR Warenkorb".
My solution for this would be adding a placeholder element, when the list is empty (-> checkSortableCart function). But then I have a problem that also this placeholder element should be of class .items and so it also could be moved to another list.
I have noticed the same behaviour by the first example (List A, List B) at http://rubaxa.github.io/Sortable/
For some reason do groups in the second example "Multi" accept items after all the items have been removed from them.
Could anyone please explain to me why the difference in behaviour of groups?
Tnx for the hint. However this is only possible, when an array's tbody is displayed as block. This changes a behaviour of the table. Is there any other possible solution that lets table be displayed as table?
Activity
RubaXa commentedon Oct 7, 2015
Use
min-heightormin-width+:empty-selector.knospe- commentedon Oct 8, 2015
Tnx for the hint. However this is only possible, when an array's tbody is displayed as block. This changes a behaviour of the table. Is there any other possible solution that lets table be displayed as table?
I have updated my JSFiddle
http://jsfiddle.net/knospe/aqgfnx2b/4/