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

saveFunction #13

Open
nunos7 opened this issue Dec 29, 2017 · 0 comments
Open

saveFunction #13

nunos7 opened this issue Dec 29, 2017 · 0 comments

Comments

@nunos7
Copy link

nunos7 commented Dec 29, 2017

Hi,
If you are more than one gridstack in your page, your saveFunction return all the items:
$('.grid-stack .grid-stack-item:visible').
The save function should return only the items of the component:
var items = $(this.el.nativeElement).find(".grid-stack-item:visible");
var jsonItems = _.map(items, function (el) { ..... }

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