Skip to main content

Home > blockly > Grid > (constructor)

Grid.(constructor)

Constructs a new instance of the Grid class

Signature:

constructor(pattern: SVGElement, options: GridOptions);

Parameters

ParameterTypeDescription
patternSVGElementThe grid's SVG pattern, created during injection.
optionsGridOptionsA dictionary of normalized options for the grid. See grid documentation: /blockly/guides/configure/web/grid