You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you want to persist layout of gridstack on the page, here is a short example:
vargetGridJSON=function(){varnodes=$('#gridstack').data('gridstack').grid.nodes;returnnodes.map(function(obj,idx){return{x: obj.x,y: obj.y,width: obj.width,height: obj.height,minHeight: obj.minHeight,minWidth: obj.minWidth}});};// this will give you array with each gridstack item, stringify it and persist in the backend :)console.log(getGridJSON());
@hairyheron
hi,
how to i can export current position as JSON format, then show by this json.
The text was updated successfully, but these errors were encountered: