* 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)
| 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. |
no test coverage detected