Stay organized with collections
Save and categorize content based on your preferences.
blockly > Block > id
Block.id property
Signature:
id: string;
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."],[[["`id`: Each Block instance possesses a unique identifier (`id`) of type string."],["This `id` is automatically assigned upon Block creation and remains constant throughout its lifespan."],["Developers can utilize this `id` to locate and manipulate specific blocks within a workspace."]]],["The `Block.id` property, part of the Blockly library, is a string value. It serves as the unique identifier for a specific Block object within the Blockly environment. Each block instance is assigned a distinct `id`, which allows for individual identification and manipulation of blocks. This string property is accessible for each block.\n"]]