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

Method _updateColumnVar

src/gridstack.ts:414–417  ·  view source on GitHub ↗
(opts: GridStackOptions = this.opts)

Source from the content-addressed store, hash-verified

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.

Callers 2

constructorMethod · 0.95
columnMethod · 0.95

Calls 1

addMethod · 0.45

Tested by

no test coverage detected