update docs

This commit is contained in:
Pavel Reznikov 2015-02-17 23:21:34 -08:00
commit 806e6b77db

View file

@ -29,6 +29,8 @@ Inspired by [gridster.js](http://gridster.net). Built with love.
- [cell_height()](#cell_height)
- [cell_height(val)](#cell_heightval)
- [cell_width()](#cell_width)
- [disable()](#disable)
- [enable()](#enable)
- [get_cell_from_pixel(position)](#get_cell_from_pixelposition)
- [locked(el, val)](#lockedel-val)
- [remove_widget(el)](#remove_widgetel)
@ -227,6 +229,24 @@ grid.cell_height(grid.cell_width() * 1.2);
Gets current cell width.
### disable()
Disables widgets moving/resizing. This is a shortcut for:
```javascript
grid.movable('.grid-stack-item', false);
grid.resizable('.grid-stack-item', false);
```
### enable()
Enables widgets moving/resizing. This is a shortcut for:
```javascript
grid.movable('.grid-stack-item', true);
grid.resizable('.grid-stack-item', true);
```
### get_cell_from_pixel(position)
Get the position of the cell under a pixel on screen.
@ -469,6 +489,7 @@ Changes
#### v0.2.3 (development version)
- add `disable`/`enable` methods
- add `get_cell_from_pixel` (thanks to @juchi)
- AMD support
- fix nodes sorting