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

Method willItFit

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

* Returns true if the height of the grid will be less than the vertical * constraint. Always returns true if grid doesn't have height constraint. * @param node contains x,y,w,h,auto-position options * * @example * if (grid.willItFit(newWidget)) { * grid.addWidget(newWidget); *

(node: GridStackWidget)

Source from the content-addressed store, hash-verified

1805 * }
1806 */
1807 public willItFit(node: GridStackWidget): boolean { return this.engine.willItFit(node) }
1808
1809 /** @internal */
1810 protected _triggerChangeEvent(): GridStack {

Callers 3

onDragMethod · 0.45
_setupAcceptWidgetMethod · 0.45
gridstack-spec.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected