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

Method float

src/gridstack-engine.ts:421–427  ·  view source on GitHub ↗

* Enable/disable floating widgets (default: `false`). * When floating is enabled, widgets can move up to fill empty spaces. * See [example](http://gridstackjs.com/demo/float.html) * * @param val true to enable floating, false to disable * * @example * engine.float = true; // En

(val: boolean)

Source from the content-addressed store, hash-verified

419 * engine.float = false; // Disable floating (default)
420 */
421 public set float(val: boolean) {
422 if (this._float === val) return;
423 this._float = val || false;
424 if (!val) {
425 this._packNodes()._notify();
426 }
427 }
428
429 /**
430 * Get the current floating mode setting.

Callers

nothing calls this directly

Calls 2

_packNodesMethod · 0.95
_notifyMethod · 0.80

Tested by

no test coverage detected