Skip to content

Commit 1b86dd9

Browse files
author
Alain Dumesny
authored
Merge pull request #1230 from adumesny/develop
readme tweaks
2 parents 6c913da + 8138a1a commit 1b86dd9

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ Join us on Slack: https://gridstackjs.troolee.com
3939
- [Touch devices support](#touch-devices-support)
4040
- [Migrating to v0.6.x](#migrating-to-v06x)
4141
- [Migrating to v1.0.0](#migrating-to-v100)
42+
- [jQuery Application](#jquery-application)
4243
- [Changes](#changes)
4344
- [The Team](#the-team)
4445

@@ -93,7 +94,7 @@ creating items dynamically...
9394

9495
<script type="text/javascript">
9596
var grid = GridStack.init();
96-
grid.addWidget('<div class="grid-stack-item"><div class="grid-stack-item-content"> test </div></div>', {width: 2});
97+
grid.addWidget('<div><div class="grid-stack-item-content">Item 1</div></div>', {width: 2});
9798
</script>
9899
```
99100

@@ -132,7 +133,7 @@ You can easily extend or patch gridstack with code like this:
132133
```js
133134
// extend gridstack with our own custom method
134135
GridStack.prototype.printCount = function() {
135-
console.log('grid has ' + this.grid.nodes.length + ' items');
136+
console.log('grid has ' + this.engine.nodes.length + ' items');
136137
};
137138

138139
var grid = GridStack.init();
@@ -322,9 +323,9 @@ Other vars/global changes
322323
323324
Recommend looking at the [many samples](./demo) for more code examples.
324325
325-
**NOTE: jQuery Applications**
326+
### jQuery Application
326327
327-
We're working on implementing HTML5 drag'n'drop through the plugin system. Right now it is still jquery-ui based. Because of that we are still bundling `jquery` (3.4.1) + `jquery-ui` (1.12.1 minimal drag|drop|resize) internally in `gridstack.all.js`. IFF your app needs to bring it's own version instead, you should **instead** include `gridstack-poly.min.js` (optional IE support) + `gridstack.min.js` + `gridstack.jQueryUI.min.js` + after you import your libs.
328+
We're working on implementing HTML5 drag'n'drop through the plugin system. Right now it is still jquery-ui based. Because of that we are still bundling `jquery` (3.4.1) + `jquery-ui` (1.12.1 minimal drag|drop|resize) internally in `gridstack.all.js`. IFF your app needs to bring it's own version instead, you should **instead** include `gridstack-poly.min.js` (optional IE support) + `gridstack.min.js` + `gridstack.jQueryUI.min.js` after you import your libs.
328329
329330
Changes
330331
=====
@@ -335,4 +336,4 @@ View our change log [here](https://github.com/gridstack/gridstack.js/tree/develo
335336
The Team
336337
========
337338
338-
gridstack.js is currently maintained by [Dylan Weiss](https://github.com/radiolips) and [Alain Dumesny](https://github.com/adumesny), originally created by [Pavel Reznikov](https://github.com/troolee). We appreciate [all contributors](https://github.com/gridstack/gridstack.js/graphs/contributors) for help.
339+
gridstack.js is currently maintained by [Alain Dumesny](https://github.com/adumesny) and [Dylan Weiss](https://github.com/radiolips), originally created by [Pavel Reznikov](https://github.com/troolee). We appreciate [all contributors](https://github.com/gridstack/gridstack.js/graphs/contributors) for help.

0 commit comments

Comments
 (0)