blockly > Block > getIcons
Block.getIcons() method
Signature:
getIcons(): IIcon[];
Returns:
IIcon[]
An array of the icons attached to this block.
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."],[[["`Block.getIcons()` returns an array of icons associated with the block."],["The method signature is `getIcons(): IIcon[];`, indicating it takes no arguments and returns an array of `IIcon` objects."]]],["The `Block.getIcons()` method retrieves an array of icons associated with a specific block. This method, which takes no arguments, returns an array of `IIcon` objects. Each `IIcon` object in the returned array represents an icon attached to the block. The `IIcon[]` represents the type of the array that the function will return.\n"]]