From 8d57e16b44d04a1a66d6a1f2ff4f00d14b80824a Mon Sep 17 00:00:00 2001 From: Pavel Reznikov Date: Thu, 11 Dec 2014 21:57:47 -0800 Subject: [PATCH] update doc with cell_height/cell_width --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index eed39f5..0d0a236 100644 --- a/README.md +++ b/README.md @@ -158,6 +158,23 @@ var grid = $('.grid-stack').data('gridstack'); grid.add_widget(el, 0, 0, 3, 2, true); ``` +### cell_height() + +Gets current cell height. + +### cell_height(val) + +Update current cell height. This method rebuilds an internal CSS stylesheet. Note: You can expect performance issues if +call this method too often. + +```javascript +grid.cell_height(grid.cell_width() * 1.2); +``` + +### cell_width() + +Gets current cell width. + ### locked(el, val) Locks/unlocks widget. @@ -293,6 +310,7 @@ Changes #### v0.2.2 (current development version) +- add `cell_height`/`cell_width` API methods - fix boolean attributes (issue #31) #### v0.2.1 (2014-12-09)