blockly > Toolbox > selectItemByPosition
Selects the toolbox item by its position in the list of toolbox items.
Signature:
selectItemByPosition(position: number): void;
Parameters
Parameter |
Type |
Description |
position |
number |
The position of the item to select. |
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 `selectItemByPosition` method selects a specific item within the toolbox based on its numerical position in the item list."],["This method accepts a single argument, `position`, which is a number representing the index of the desired item to be selected."],["Calling `selectItemByPosition` does not return any value (void), but directly modifies the toolbox's selection state."]]],[]]