Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Drag row into empty table using Dragula

I'm trying to use Dragula (with angular-dragula actually) to drag a row from one table to another. If both tables have rows there are no problems, but there are cases where the target table will be empty. How do I make the empty table allow for a drop?

like image 314
mykbaker Avatar asked May 27 '16 19:05

mykbaker


1 Answers

Maybe the table is too small? Try changing min-height.


Insert a placeholder row when there is nothing in the table http://plnkr.co/edit/0TBXXZOBAKnGxHig3xzD?p=preview

like image 120
hayden Avatar answered Nov 15 '22 05:11

hayden