From 72432d0fa8ce62b0b3c6f02bd6abdf75e475a834 Mon Sep 17 00:00:00 2001 From: Dylan Weiss Date: Sat, 20 Feb 2016 09:42:18 -0500 Subject: [PATCH 1/3] #114 Add setAnimate(doAnimate) to API docs. --- README.md | 2 ++ doc/README.md | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 504d44f..0fb2525 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 `setAnimate` method to API #### v0.2.4 (2016-02-15) diff --git a/doc/README.md b/doc/README.md index 5d60ecc..21ad5c4 100644 --- a/doc/README.md +++ b/doc/README.md @@ -365,11 +365,17 @@ Enables/Disables resizing. - `el` - widget to modify - `val` - if `true` widget will be resizable. +### setAnimate(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) From c185a7a0933df8dceaa6342182daf20ed0ad744e Mon Sep 17 00:00:00 2001 From: Dylan Weiss Date: Sat, 20 Feb 2016 09:49:27 -0500 Subject: [PATCH 2/3] Add grunt-jscs to package.json dev dependencies, update doctoc. --- doc/README.md | 1 + package.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/README.md b/doc/README.md index 21ad5c4..43032d4 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) + - [setAnimate(doAnimate)](#setanimatedoanimate) - [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) 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" } } From 4b7cc8d24b45a3b6b85e21f5b23949d065a8875f Mon Sep 17 00:00:00 2001 From: Dylan Weiss Date: Sat, 20 Feb 2016 09:56:03 -0500 Subject: [PATCH 3/3] Typo. --- README.md | 2 +- doc/README.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0fb2525..8856ee2 100644 --- a/README.md +++ b/README.md @@ -442,7 +442,7 @@ Changes - RTL support - `'auto'` value for `cellHeight` option - fix `setStatic` method -- add `setAnimate` method to API +- add `setAnimation` method to API #### v0.2.4 (2016-02-15) diff --git a/doc/README.md b/doc/README.md index 43032d4..fa43bf7 100644 --- a/doc/README.md +++ b/doc/README.md @@ -42,7 +42,7 @@ gridstack.js API - [removeAll()](#removeall) - [resize(el, width, height)](#resizeel-width-height) - [resizable(el, val)](#resizableel-val) - - [setAnimate(doAnimate)](#setanimatedoanimate) + - [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) @@ -366,7 +366,7 @@ Enables/Disables resizing. - `el` - widget to modify - `val` - if `true` widget will be resizable. -### setAnimate(doAnimate) +### setAnimation(doAnimate) Toggle the grid animation state. Toggles the `grid-stack-animate` class.