blockly > BlockSvg > select
BlockSvg.select() method
Selects this block. Highlights the block visually.
Signature:
select(): void;
Returns:
void
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."],[[["`select()` visually highlights the block, effectively selecting it."],["This method is a member of the `BlockSvg` class within the `blockly` library."],["It has no return value (`void`)."],["Calling `select()` on a `BlockSvg` instance will cause it to become visually highlighted, indicating its selection state."]]],["The `BlockSvg.select()` method is used to select a block, visually highlighting it. This method takes no parameters and returns nothing (void). Its primary action is to change the block's appearance to indicate that it is currently selected.\n"]]