MCPcopy Index your code
hub / github.com/gridstack/gridstack.js / updateOption

Method updateOption

src/dd-resizable.ts:105–117  ·  view source on GitHub ↗
(opts: DDResizableOpt)

Source from the content-addressed store, hash-verified

103 }
104
105 public updateOption(opts: DDResizableOpt): DDResizable {
106 const updateHandles = (opts.handles && opts.handles !== this.option.handles);
107 const updateAutoHide = (opts.autoHide && opts.autoHide !== this.option.autoHide);
108 Object.keys(opts).forEach(key => this.option[key] = opts[key]);
109 if (updateHandles) {
110 this._removeHandlers();
111 this._setupHandlers();
112 }
113 if (updateAutoHide) {
114 this._setupAutoHide(this.option.autoHide);
115 }
116 return this;
117 }
118
119 /** @internal turns auto hide on/off */
120 protected _setupAutoHide(auto: boolean): DDResizable {

Callers

nothing calls this directly

Calls 3

_removeHandlersMethod · 0.95
_setupHandlersMethod · 0.95
_setupAutoHideMethod · 0.95

Tested by

no test coverage detected