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
* tiny file now part of all.js output.
* removed core-js from samples (>85k zipped) as we only needed 2 methods anway
* removed all IE8 mentions, updated docs.
* tested on IE11, Chrome, Firefox, Edge
*`Array.prototype.find` for IE and older browsers ([core.js](https://github.com/zloirock/core-js#ecmascript-6-array) allows to include specific polyfills)
50
+
*`Array.prototype.find`, and `Number.isNaN()` for IE and older browsers. We supply a separate `gridstack.poly.js` for that
51
+
(part of `gridstack.all.js`) or you can look at other pollyfills
52
+
([core.js](https://github.com/zloirock/core-js#ecmascript-6-array) and [mozilla.org](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find)).
You can download source and build and use `dist` directory as well for latest non published code.
92
+
* Using bower:
93
+
94
+
```bash
95
+
$ bower install gridstack
96
+
```
97
+
98
+
You can also download source and build and use `dist` directory as well for latest non published code.
91
99
92
100
## Basic usage
93
101
94
102
```html
95
103
<divclass="grid-stack">
96
-
<divclass="grid-stack-item"
97
-
data-gs-x="0"data-gs-y="0"
98
-
data-gs-width="4"data-gs-height="2">
99
-
<divclass="grid-stack-item-content"></div>
104
+
<divclass="grid-stack-item">
105
+
<divclass="grid-stack-item-content">Item 1</div>
100
106
</div>
101
-
<divclass="grid-stack-item"
102
-
data-gs-x="4"data-gs-y="0"
103
-
data-gs-width="4"data-gs-height="4">
104
-
<divclass="grid-stack-item-content"></div>
107
+
<divclass="grid-stack-item"data-gs-height="4">
108
+
<divclass="grid-stack-item-content">Item 2</div>
105
109
</div>
106
110
</div>
107
111
@@ -258,59 +262,6 @@ $('.grid-stack').gridstack({
258
262
259
263
Note: It's not recommended to enable `nw`, `n`, `ne` resizing handles. Their behaviour may be unexpected.
260
264
261
-
## IE8 support
262
-
263
-
Support of IE8 is quite limited and is not a goal at this time. As far as IE8 doesn't support DOM Level 2 I cannot manipulate with
264
-
CSS stylesheet dynamically. As a workaround you can do the following:
265
-
266
-
- Create `gridstack-ie8.css` for your configuration (sample for grid with cell height of 60px can be found [here](https://gist.github.com/gridstack/6edfea5857f4cd73e6f1)).
267
-
- Include this CSS:
268
-
269
-
```html
270
-
<!--[if lt IE 9]>
271
-
<link rel="stylesheet" href="gridstack-ie8.css"/>
272
-
<![endif]-->
273
-
```
274
-
275
-
- You can use this python script to generate such kind of CSS:
0 commit comments