blockly > ISelectable > select
ISelectable.select() method
Select this. Highlight it 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."],[[["The `select()` method is part of the `ISelectable` interface in Blockly and is used to visually highlight a selectable element."],["This method has no parameters and does not return any value, simply applying a visual selection to the element it's called on."],["By invoking `select()` on an object implementing `ISelectable`, developers trigger the visual highlighting, signaling its selection status to the user."]]],["The `ISelectable.select()` method is designed to visually highlight an object. Its core function is to select the current object, changing its appearance to indicate that it is currently selected. This method takes no parameters and does not return any value (void). The primary action is to visually select and highlight the object when the method is invoked.\n"]]