ng2-dragula icon indicating copy to clipboard operation
ng2-dragula copied to clipboard

How to set default option without groupsname ? [dragulaOptions] not working !

Open astanapat14 opened this issue 6 years ago • 3 comments

How to set default options revertOnSpill: true all. (Don't know groups name becuase it make by user , dragula=dragulaContent_{{i = index}})

screenshot from 2018-11-04 21-24-23

Thank You !

astanapat14 avatar Nov 04 '18 14:11 astanapat14

Well, you do know the group's name. You defined it. Define it differently, in a way that is tied to the ID, and initialize the group first.

cormacrelf avatar Nov 08 '18 11:11 cormacrelf

Well, you do know the group's name. You defined it. Define it differently, in a way that is tied to the ID, and initialize the group first.

How to tied id and initialize the group because i don't know the group name,it maybe have dragContent_1 or dragContent_1 and dragContent_2 or dragContent_1 to dragContent_10

astanapat14 avatar Nov 09 '18 08:11 astanapat14

You know the pattern, you just posted it in a GitHub issue. Write some code to add a group to Dragula whenever the user does the action that would cause a new group to appear.

cormacrelf avatar Nov 14 '18 18:11 cormacrelf