(opts: GridStackOptions = this.opts)
| 412 | } |
| 413 | |
| 414 | private _updateColumnVar(opts: GridStackOptions = this.opts): void { |
| 415 | this.el.classList.add('gs-' + opts.column); |
| 416 | if (typeof opts.column === 'number') this.el.style.setProperty('--gs-column-width', `${100/opts.column}%`); |
| 417 | } |
| 418 | |
| 419 | /** |
| 420 | * add a new widget and returns it. |
no test coverage detected