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

Skip to content

Commit 8d57e16

Browse files
committed
update doc with cell_height/cell_width
1 parent 3565ee5 commit 8d57e16

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,23 @@ var grid = $('.grid-stack').data('gridstack');
158158
grid.add_widget(el, 0, 0, 3, 2, true);
159159
```
160160

161+
### cell_height()
162+
163+
Gets current cell height.
164+
165+
### cell_height(val)
166+
167+
Update current cell height. This method rebuilds an internal CSS stylesheet. Note: You can expect performance issues if
168+
call this method too often.
169+
170+
```javascript
171+
grid.cell_height(grid.cell_width() * 1.2);
172+
```
173+
174+
### cell_width()
175+
176+
Gets current cell width.
177+
161178
### locked(el, val)
162179

163180
Locks/unlocks widget.
@@ -293,6 +310,7 @@ Changes
293310

294311
#### v0.2.2 (current development version)
295312

313+
- add `cell_height`/`cell_width` API methods
296314
- fix boolean attributes (issue #31)
297315

298316
#### v0.2.1 (2014-12-09)

0 commit comments

Comments
 (0)