-
Notifications
You must be signed in to change notification settings - Fork 67
Better support for adding containers dynamically #170
Comments
For now I think the reinit is the simplest option :/ The lib get robust during the time and the architecture was not prepared for it (my lack of experience, sorry). It is possible by augmenting
where I can make helper functions addContainer, removeContainer for it. I will try in close future. But I am now spending most of the free time on another project, so cannot promise the deadline. Sorry :/ |
Thanks @luckylooke for your help, I appreciate. I will go and try play with the container arrays and will post the results here if I manage to make any significant progress. Cheers! |
How would I deinitialize a Dragular element? Setting |
ok, so simply emptying |
@luckylooke thanks for your help!! |
I am glad you have found acceptable solution for you. I will keep this open until I implement those methods for better containers management. Thank you for your contribution. |
@luckylooke not at all, thanks for keeping this awesome repo alive! |
Hi, |
@mahendra2125 could you please create plunker, or something I can see your scenario? Then I can help you, thanks ;) |
@abtx hi! I have put there in drake helper methods, just released: Can you try them and let me know if they worked for you? Thanks |
They work nicely (at least for
|
I will try to update it soon, but PR would be appreciated, thanks anyway :) |
How can I add containers dynamically?
I get
Cannot register container element more than once!
when trying to add a new unique container when an element is added dynamically.Is there built in support in Dragular for what I'm trying to do?
PS: I could do with a hack where I re-instantiate the Dragular instace
Below is my code for the function
The text was updated successfully, but these errors were encountered: