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

Method float

src/gridstack.ts:1149–1155  ·  view source on GitHub ↗

* Enable/disable floating widgets (default: `false`). When enabled, widgets can float up to fill empty spaces. * See [example](http://gridstackjs.com/demo/float.html) * * @param val true to enable floating, false to disable * @returns the grid instance for chaining * * @example

(val: boolean)

Source from the content-addressed store, hash-verified

1147 * grid.float(false); // Disable floating (default)
1148 */
1149 public float(val: boolean): GridStack {
1150 if (this.opts.float !== val) {
1151 this.opts.float = this.engine.float = val;
1152 this._triggerChangeEvent();
1153 }
1154 return this;
1155 }
1156
1157 /**
1158 * Get the current float mode setting.

Callers 2

updateOptionsMethod · 0.95
gridstack-spec.tsFile · 0.45

Calls 1

_triggerChangeEventMethod · 0.95

Tested by

no test coverage detected