Skip to content

Commit 0457a85

Browse files
authored
Merge pull request #2146 from adumesny/master
removed incorrect doc/code on individual item resizeHandles
2 parents 83f3d7f + 0742a64 commit 0457a85

File tree

4 files changed

+1
-5
lines changed

4 files changed

+1
-5
lines changed

doc/CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ Change log
8080

8181
## 7.1.2-dev (TBD)
8282
* fix [#1936](https://github.com/gridstack/gridstack.js/issues/1936) some styles left behind after a drag
83+
* fix [#1842](https://github.com/gridstack/gridstack.js/issues/1842) incorrect doc/partial code on widget resizeHandles
8384

8485
## 7.1.2 (2022-12-29)
8586
* fix [#939](https://github.com/gridstack/gridstack.js/issues/2039) 'prototype' undefined error for dd-gridstack.js

doc/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ The widget can still be dragged or resized by the user.
148148
You need to add `noResize` and `noMove` attributes to completely lock the widget.
149149
- `noResize` - disable element resizing
150150
- `noMove` - disable element moving
151-
- `resizeHandles` - widgets can have their own custom resize handles. For example 'e,w' will make that particular widget only resize east and west. See `resizable: {handles: string}` option
152151
- `id`- (number | string) good for quick identification (for example in change event)
153152
- `content` - (string) html content to be added when calling `grid.load()/addWidget()` as content inside the item
154153
- `subGrid`?: GridStackOptions - optional nested grid options and list of children

src/gridstack.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1423,7 +1423,6 @@ export class GridStack {
14231423
noMove: 'gs-no-move',
14241424
locked: 'gs-locked',
14251425
id: 'gs-id',
1426-
resizeHandles: 'gs-resize-handles'
14271426
};
14281427
for (const key in attrs) {
14291428
if (node[key]) { // 0 is valid for x,y only but done above already and not in list anyway
@@ -1450,7 +1449,6 @@ export class GridStack {
14501449
node.noResize = Utils.toBool(el.getAttribute('gs-no-resize'));
14511450
node.noMove = Utils.toBool(el.getAttribute('gs-no-move'));
14521451
node.locked = Utils.toBool(el.getAttribute('gs-locked'));
1453-
node.resizeHandles = el.getAttribute('gs-resize-handles');
14541452
node.id = el.getAttribute('gs-id');
14551453

14561454
// remove any key not found (null or false which is default)

src/types.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,6 @@ export interface GridStackWidget extends GridStackPosition {
303303
noMove?: boolean;
304304
/** prevents being moved by others during their (default?: undefined = un-constrained) */
305305
locked?: boolean;
306-
/** widgets can have their own custom resize handles. For example 'e,w' will make that particular widget only resize east and west. See `resizable: {handles: string}` option */
307-
resizeHandles?: string;
308306
/** value for `gs-id` stored on the widget (default?: undefined) */
309307
id?: numberOrString;
310308
/** html to append inside as content */

0 commit comments

Comments
 (0)