We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents baaf4e5 + 4ac1422 commit cdd74ddCopy full SHA for cdd74dd
README.md
@@ -326,7 +326,9 @@ var grid = $('.grid-stack').data('gridstack');
326
var grid = GridStack.init(opts?, element?);
327
328
// returns DOM element
329
-grid.addWidget('<div><div class="grid-stack-item-content"> test </div></div>', {w: 2});
+grid.addWidget('<div><div class="grid-stack-item-content"> test </div></div>', {width: 2});
330
+// Note: in 3.x it's ever simpler
331
+// grid.addWidget({w:2, content: 'test'})
332
333
// event handler
334
grid.on('added', function(e, items) {/* items contains info */});
0 commit comments