diff --git a/README.md b/README.md index 504d44f..8856ee2 100644 --- a/README.md +++ b/README.md @@ -441,6 +441,8 @@ Changes - remove dependency of FontAwesome - RTL support - `'auto'` value for `cellHeight` option +- fix `setStatic` method +- add `setAnimation` method to API #### v0.2.4 (2016-02-15) diff --git a/doc/README.md b/doc/README.md index 5d60ecc..fa43bf7 100644 --- a/doc/README.md +++ b/doc/README.md @@ -42,6 +42,7 @@ gridstack.js API - [removeAll()](#removeall) - [resize(el, width, height)](#resizeel-width-height) - [resizable(el, val)](#resizableel-val) + - [setAnimation(doAnimate)](#setanimationdoanimate) - [setStatic(staticValue)](#setstaticstaticvalue) - [update(el, x, y, width, height)](#updateel-x-y-width-height) - [willItFit(x, y, width, height, autoPosition)](#willitfitx-y-width-height-autoposition) @@ -365,11 +366,17 @@ Enables/Disables resizing. - `el` - widget to modify - `val` - if `true` widget will be resizable. +### setAnimation(doAnimate) + +Toggle the grid animation state. Toggles the `grid-stack-animate` class. + +- `doAnimate` - if `true` the grid will animate. + ### setStatic(staticValue) Toggle the grid static state. Also toggle the `grid-stack-static` class. -- `staticValue` - if `true` the grid become static. +- `staticValue` - if `true` the grid becomes static. ### update(el, x, y, width, height) diff --git a/package.json b/package.json index 4a4d7e4..7f1d790 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,7 @@ "grunt-contrib-uglify": "^0.10.1", "grunt-contrib-watch": "^0.6.1", "grunt-doctoc": "^0.1.1", - "grunt-sass": "^1.1.0" + "grunt-sass": "^1.1.0", + "grunt-jscs": "^2.7.0" } }