-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a new node #57
Comments
#MappingEditor ul object Thanks for the quick response! If it helps, I threw everything into a CodePen |
I test it right now. This works without any problems:
The problem can be with maxLevels option which needs to have data-insideLevs and data-upperLevs set. |
You're right! I disabled maxLevels and it's working great! I'll leave that feature off for the time being (I guess I can use the isAllowed callback to limit level for now. Still early development) |
This works also with maxLevels.
I made maxLevels feature yesterday so if you will have a problem feel free to create an issue. I will fix it ASAP |
This works for me! If anything, maybe a small paragraph in your documentation would be super helpful for the next person. Thanks! |
Do not close it for now. If somebody will search solution for this case. |
If someone is looking for a way to add an element to an existing empty node (with id:current_id_append in my example)
I am still trying to figure out how to append the plus/minus icon to the div (with event) |
@michalgala What s the problem with plus/minus icons? |
Is there any way to add a new list item dynamically? I attempted the following, but it causes the browser to crash from running out of memory:
$('#MappingEditor').append('<li id="New_Category"><div>New Category</div></li>').sortableLists(mappingOptions);
It seems to work for about a second before running out of memory. Is there an alternate way to re-instantiate sortableLists maybe?
The text was updated successfully, but these errors were encountered: