Merge pull request #340 from radiolips/feature/114/Update-api-doc

#114 Add setAnimate(doAnimate) to API docs.
This commit is contained in:
radiolips 2016-02-20 09:53:15 -05:00
commit 07fd836de6
3 changed files with 12 additions and 2 deletions

View file

@ -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)

View file

@ -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)
@ -365,11 +366,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)

View file

@ -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"
}
}