blockly > Block > icons
Block.icons property
Signature:
icons: IIcon[];
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.
[null,null,["Last updated 2024-09-18 UTC."],[[["`icons` property of the `Block` class in Blockly is an array of `IIcon` objects that visually represent the block."],["These icons are typically displayed on the block itself or in the toolbox to provide additional information or functionality."]]],["The `Block.icons` property, part of the Blockly library, is defined as an array of `IIcon` objects. This property is directly associated with the `Block` class. It signifies that each block within Blockly can have an array of icons associated with it, represented by the `IIcon[]` type. This allows for multiple visual elements to be displayed alongside a block.\n"]]