Skip to content
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: custom layout wrong #87

Open
walter-exit opened this issue Oct 23, 2017 · 0 comments
Open

Add: custom layout wrong #87

walter-exit opened this issue Oct 23, 2017 · 0 comments

Comments

@walter-exit
Copy link

walter-exit commented Oct 23, 2017

Expected behavior

When adding an item using:
$('.dd').nestable('add', {"id":1,"children":[{"id":4}]});
..it would be nice if the layout would consider a custom build function. Like when using:
buildItem(item) { ... }

Actual behavior

When adding an item, the default layout is used for a new item.

Steps to reproduce the behavior

Use a custom layout with:
buildItem(item) { ... }
Then use:
$('.dd').nestable('add', {"id":1,"children":[{"id":4}]});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant