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

Method getColumn

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

* Get the number of columns in the grid (default 12). * * @returns the current number of columns in the grid * * @example * const columnCount = grid.getColumn(); // returns 12 by default

()

Source from the content-addressed store, hash-verified

1076 * const columnCount = grid.getColumn(); // returns 12 by default
1077 */
1078 public getColumn(): number { return this.opts.column as number; }
1079
1080 /**
1081 * Returns an array of grid HTML elements (no placeholder) - used to iterate through our children in DOM order.

Callers 9

constructorMethod · 0.95
loadMethod · 0.95
cellWidthMethod · 0.95
checkDynamicColumnMethod · 0.95
columnMethod · 0.95
getCellFromPixelMethod · 0.95
_onStartMovingMethod · 0.95
saveMethod · 0.80
gridstack-spec.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected