Stay organized with collections
Save and categorize content based on your preferences.
blockly > Options > GridOptions
Options.GridOptions interface
Signature:
interface GridOptions
Properties
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eGridOptions\u003c/code\u003e interface defines properties for customizing the grid in Blockly workspaces.\u003c/p\u003e\n"],["\u003cp\u003eThese options include \u003ccode\u003ecolour\u003c/code\u003e, \u003ccode\u003elength\u003c/code\u003e, \u003ccode\u003esnap\u003c/code\u003e, and \u003ccode\u003espacing\u003c/code\u003e to control the grid's appearance and behavior.\u003c/p\u003e\n"],["\u003cp\u003eEach property has a specific type, such as string, number, or boolean, determining the acceptable values for configuration.\u003c/p\u003e\n"]]],[],null,["[blockly](./blockly.md) \\\u003e [Options](./blockly.options_namespace.md) \\\u003e [GridOptions](./blockly.options_namespace.gridoptions_interface.md)\n\nOptions.GridOptions interface\n-----------------------------\n\n**Signature:** \n\n interface GridOptions \n\nProperties\n----------\n\n| Property | Modifiers | Type | Description |\n|-------------------------------------------------------------------------------------------|-----------|---------|-------------|\n| [colour](./blockly.options_namespace.gridoptions_interface.colour_propertysignature.md) | | string | |\n| [length](./blockly.options_namespace.gridoptions_interface.length_propertysignature.md) | | number | |\n| [snap](./blockly.options_namespace.gridoptions_interface.snap_propertysignature.md) | | boolean | |\n| [spacing](./blockly.options_namespace.gridoptions_interface.spacing_propertysignature.md) | | number | |"]]