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'm new to Dragula. I'm trying to use this library instead of a more complex one.
One of my need is to be able to specify the HTML of an element that is "copied": I have a list of elements (each element of the list is a complex li) and below this list is a "+ element" button. I want to be able to drag the "+" button and, when dropped in the list, a new li element to be created.
How do I specify the HTML to use for the dropped element? Do I have to use the drop event and replace the dropped element (which is a simple button in my case!) by the required li HTML?
The text was updated successfully, but these errors were encountered:
I'm new to Dragula. I'm trying to use this library instead of a more complex one.
One of my need is to be able to specify the HTML of an element that is "copied": I have a list of elements (each element of the list is a complex
li
) and below this list is a "+ element" button. I want to be able to drag the "+" button and, when dropped in the list, a newli
element to be created.How do I specify the HTML to use for the dropped element? Do I have to use the
drop
event and replace the dropped element (which is a simple button in my case!) by the requiredli
HTML?The text was updated successfully, but these errors were encountered: