Skip to content

saveFunction #13

@n-simoes-santos-alb

Description

@n-simoes-santos-alb

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) { ..... }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions