Skip to content

Data save & load #944

@sociablesasha

Description

@sociablesasha

Save & Load

I save the data like this.
[{
"gs_x": "0",
"gs_y": "0",
"gs_width": "6",
"gs_height": "4",
"gs_max_width": "6",
"gs_min_width": "2",
"gs_max_height": "6",
"gs_min_height": "2",
"gs_title": "adadadafafa"
}, {
"gs_x": "2",
"gs_y": "4",
"gs_width": "4",
"gs_height": "2",
"gs_max_width": "6",
"gs_min_width": "2",
"gs_max_height": "6",
"gs_min_height": "2"
}]

And if l load data create-stack() and change attr. But it is wrong.
How I can do?

2018-10-05 3 56 03

2018-10-05 3 56 31

2018-10-05 3 56 44

2018-10-05 3 57 05

Your environment

  • version of gridstack.js 0.4.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions