Skip to content

Commit 0c158ab

Browse files
author
Alain Dumesny
committed
readme typo
1 parent c5d8b2b commit 0c158ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ v1.0.0 removed Jquery from the API and external dependencies, which will require
270270
```js
271271
// initialization returned Jquery element, requiring second call to get GridStack var
272272
$('.grid-stack').gridstack(opts?);
273-
var grid = $('.grid-stack').data('grid-stack');
273+
var grid = $('.grid-stack').data('gridstack');
274274

275275
// returned Jquery element
276276
grid.addWidget($('<div><div class="grid-stack-item-content"> test </div></div>'), {width: 2});
@@ -282,7 +282,7 @@ $('.grid-stack').on('added', function(e, items) {/* items contains info */});
282282
**NEW**
283283
```js
284284
// element identifier defaults to '.grid-stack', returns the grid
285-
// for Typescript use window.GridStack.init()
285+
// Note: for Typescript use window.GridStack.init() until next native TS version
286286
var grid = GridStack.init(opts?, element?);
287287

288288
// returns DOM element

0 commit comments

Comments
 (0)