From ff15070de0943f66fd30a6a55e8837e0e1b33425 Mon Sep 17 00:00:00 2001 From: d Date: Fri, 19 Feb 2016 11:18:09 -0500 Subject: [PATCH] Fix #331. Add options to disable move and resize independently without impacting jquery-ui options. Update enableMove and enableResize methods to update these options on-the-fly. --- README.md | 36 +++++++++++++++++++----------------- dist/gridstack.js | 26 +++++++++++++++++--------- dist/gridstack.min.js | 4 ++-- dist/gridstack.min.map | 2 +- src/gridstack.js | 26 +++++++++++++++++--------- 5 files changed, 56 insertions(+), 38 deletions(-) diff --git a/README.md b/README.md index 4e8b727..98a4b65 100644 --- a/README.md +++ b/README.md @@ -41,8 +41,8 @@ Join gridstack.js on Slack: https://gridstackjs.troolee.com - [destroy()](#destroy) - [disable()](#disable) - [enable()](#enable) - - [enableMove(doEnable)](#enablemovedoenable) - - [enableResize(doEnable)](#enableresizedoenable) + - [enableMove(doEnable, includeNewWidgets)](#enablemovedoenable-includenewwidgets) + - [enableResize(doEnable, includeNewWidgets)](#enableresizedoenable-includenewwidgets) - [getCellFromPixel(position)](#getcellfrompixelposition) - [isAreaEmpty(x, y, width, height)](#isareaemptyx-y-width-height) - [locked(el, val)](#lockedel-val) @@ -57,7 +57,7 @@ Join gridstack.js on Slack: https://gridstackjs.troolee.com - [removeAll()](#removeall) - [resize(el, width, height)](#resizeel-width-height) - [resizable(el, val)](#resizableel-val) - - [setStatic(static_value)](#setstaticstatic_value) + - [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) - [Utils](#utils) @@ -147,8 +147,8 @@ You can download files from `dist` directory as well.