vddl icon indicating copy to clipboard operation
vddl copied to clipboard

Support horizontal and vertical simultaneously

Open pschaub opened this issue 7 years ago • 3 comments

Is it possible to support horizontal and vertical drag'n'drop simultaneously? I want to drag containers from the "vertical" list inside the "horizontal" list. Can you provide an example?

I want to do the same as shown on the similar angular dnd list here: http://marceljuenemann.github.io/angular-drag-and-drop-lists/demo/#/nested

pschaub avatar Dec 05 '17 19:12 pschaub

Weekends, I try it.

hejianxian avatar Dec 06 '17 04:12 hejianxian

@pSchaub Hi.

I tried it, just change the style of the item inside the Container. Set float: left, and set the width to 50%, and don't forget to change the style of the placeholder in the container.

.container .item, .container .vddl-placeholder {
  float: left;
  width: 50%;
}

hejianxian avatar Dec 12 '17 14:12 hejianxian

@hejianxian Can you add this to the official (example) documentation?

pschaub avatar Dec 21 '17 13:12 pschaub