Skip to content

Commit cc8af14

Browse files
authored
Merge pull request #1319 from adumesny/typescript
TS: doc update
2 parents 4cd4fc1 + ac142d4 commit cc8af14

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

README.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,18 +70,24 @@ npm install --save gridstack
7070

7171
## Include
7272

73-
* local:
73+
after you install:
74+
75+
```js
76+
import 'gridstack/dist/gridstack.all.js';
77+
import 'gridstack/dist/gridstack.css';
78+
```
79+
* alternatively in html
7480

7581
```html
76-
<link rel="stylesheet" href="gridstack.min.css" />
77-
<script src="gridstack.all.js"></script>
82+
<link rel="stylesheet" href="node_modules/gridstack/dist/gridstack.min.css" />
83+
<script src="node_modules/gridstack/dist/gridstack.all.js"></script>
7884
```
7985

80-
* Using CDN (minimized):
86+
* or using CDN (minimized):
8187

8288
```html
83-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gridstack@1.1.2/dist/gridstack.min.css" />
84-
<script src="https://cdn.jsdelivr.net/npm/gridstack@1.1.2/dist/gridstack.all.js"></script>
89+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gridstack@1.2.0/dist/gridstack.min.css" />
90+
<script src="https://cdn.jsdelivr.net/npm/gridstack@1.2.0/dist/gridstack.all.js"></script>
8591
```
8692

8793
if you need to debug, look at the git demo/ examples for non min includes.
@@ -326,7 +332,7 @@ Recommend looking at the [many samples](./demo) for more code examples.
326332
327333
### jQuery Application
328334
329-
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.5.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.
335+
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.5.1) + `jquery-ui` (1.12.1 minimal drag|drop|resize) internally in `gridstack.all.js`. IFF your app needs to bring your 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 JQ libs. But note that there are issue with jQuery and ES6 import (see [1306](https://github.com/gridstack/gridstack.js/issues/1306))
330336
331337
## Migrating to v2.0.0
332338

doc/CHANGES.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Change log
66
**Table of Contents** *generated with [DocToc](http://doctoc.herokuapp.com/)*
77

88
- [2.0.0-dev (upcoming)](#200-dev-upcoming)
9-
- [1.2.0 (upcoming)](#120-upcoming)
9+
- [1.2.0 (2020-08-01)](#120-2020-08-01)
1010
- [1.1.2 (2020-05-17)](#112-2020-05-17)
1111
- [1.1.1 (2020-03-17)](#111-2020-03-17)
1212
- [1.1.0 (2020-02-29)](#110-2020-02-29)
@@ -45,10 +45,11 @@ Change log
4545
You can now have perfect square cells (default) [723](https://github.com/gridstack/gridstack.js/issues/723)
4646
- fix [1299](https://github.com/gridstack/gridstack.js/pull/1299) many columns round-off error
4747

48-
## 1.2.0 (upcoming)
48+
## 1.2.0 (2020-08-01)
4949

5050
- fix [1311](https://github.com/gridstack/gridstack.js/issues/1311) domAttr is not defined
5151
- adds `styleInHead` option to allow for selecting older behavior (adding STYLE element to HEAD element instead of parentNode)
52+
- update jquery to v3.5.1
5253

5354
## 1.1.2 (2020-05-17)
5455

0 commit comments

Comments
 (0)