Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit be4f9a2

Browse files
committed
v1.2.0
1 parent f059b38 commit be4f9a2

9 files changed

+20
-14
lines changed

README.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,13 @@ npm install --save gridstack
7171

7272
## Include
7373

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

7682
```html
7783
<link rel="stylesheet" href="node_modules/gridstack/dist/gridstack.min.css" />
@@ -81,8 +87,8 @@ npm install --save gridstack
8187
* or using CDN (minimized):
8288

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

8894
if you need to debug, look at the git demo/ examples for non min includes.
@@ -175,7 +181,7 @@ GridStack.init( {column: N} );
175181

176182
2) include `gridstack-extra.css` if **N < 12** (else custom CSS - see next). Without these, things will not render/work correctly.
177183
```html
178-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gridstack@1.1.2/dist/gridstack-extra.css"/>
184+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gridstack@1.2.0/dist/gridstack-extra.css"/>
179185

180186
<div class="grid-stack grid-stack-N">...</div>
181187
```
@@ -337,7 +343,7 @@ Recommend looking at the [many samples](./demo) for more code examples.
337343
338344
### jQuery Application
339345
340-
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.
346+
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))
341347
342348
Changes
343349
=====

doc/CHANGES.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Change log
55
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
66
**Table of Contents** *generated with [DocToc](http://doctoc.herokuapp.com/)*
77

8-
- [1.1.2-dev (upcoming)](#112-dev-upcoming)
8+
- [1.2.0 (2020-08-01)](#120-2020-08-01)
99
- [1.1.2 (2020-05-17)](#112-2020-05-17)
1010
- [1.1.1 (2020-03-17)](#111-2020-03-17)
1111
- [1.1.0 (2020-02-29)](#110-2020-02-29)
@@ -34,7 +34,7 @@ Change log
3434

3535
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
3636

37-
## 1.1.2-dev (upcoming)
37+
## 1.2.0 (2020-08-01)
3838

3939
- fix [1311](https://github.com/gridstack/gridstack.js/issues/1311) domAttr is not defined
4040
- adds `styleInHead` option to allow for selecting older behavior (adding STYLE element to HEAD element instead of parentNode)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gridstack",
3-
"version": "1.1.2-dev",
3+
"version": "1.2.0",
44
"description": "JavaScript / TypeScript for dashboard layout and creation, no external dependencies, with many wrappers (React, Angular, Ember, knockout...)",
55
"main": "dist/gridstack",
66
"repository": {

src/gridstack-extra.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* gridstack 1.1.2-dev extra CSS for [2-11] columns (non default)
2+
* gridstack 1.2.0 extra CSS for [2-11] columns (non default)
33
* https://gridstackjs.com/
44
* (c) 2014-2020 Alain Dumesny, Dylan Weiss, Pavel Reznikov
55
* gridstack.js may be freely distributed under the MIT license.

src/gridstack-poly.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/** gridstack.js 1.1.2-dev - IE and older browsers Polyfills for this library @preserve*/
1+
/** gridstack.js 1.2.0 - IE and older browsers Polyfills for this library @preserve*/
22
/**
33
* https://gridstackjs.com/
44
* (c) 2019-2020 Alain Dumesny

src/gridstack.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Type definitions for Gridstack 1.1.2-dev
1+
// Type definitions for Gridstack 1.2.0
22
// Project: https://gridstackjs.com/
33
// Definitions by: Pascal Senn <https://github.com/PascalSenn>
44
// Ricky Blankenaufulland <https://github.com/ZoolWay>

src/gridstack.jQueryUI.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/** gridstack.js 1.1.2-dev - JQuery UI Drag&Drop plugin @preserve */
1+
/** gridstack.js 1.2.0 - JQuery UI Drag&Drop plugin @preserve */
22
/**
33
* https://gridstackjs.com/
44
* (c) 2014-2020 Alain Dumesny, Dylan Weiss, Pavel Reznikov

src/gridstack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* gridstack.js 1.1.2-dev
2+
* gridstack.js 1.2.0
33
* https://gridstackjs.com/
44
* (c) 2014-2020 Alain Dumesny, Dylan Weiss, Pavel Reznikov
55
* gridstack.js may be freely distributed under the MIT license.

src/gridstack.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* required gridstack 1.1.2-dev CSS for default 12 and 1 columnMode size. Use gridstack-extra.css for others
2+
* required gridstack 1.2.0 CSS for default 12 and 1 columnMode size. Use gridstack-extra.css for others
33
* https://gridstackjs.com/
44
* (c) 2014-2020 Alain Dumesny, Dylan Weiss, Pavel Reznikov
55
* gridstack.js may be freely distributed under the MIT license.

0 commit comments

Comments
 (0)