blockly > Zestaw narzędzi > setSelectedItem
Ustawia dany element jako wybrany. No-opera, jeśli elementu nie można wybrać.
Podpis:
setSelectedItem(newItem: IToolboxItem | null): void;
Parametry
Parametr |
Typ |
Opis |
newItem |
IToolboxItem | wartość null |
Element z narzędzi do wyboru. |
Zwroty:
nieważne
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-08-22 UTC.
[null,null,["Ostatnia aktualizacja: 2024-08-22 UTC."],[[["The `Toolbox.setSelectedItem()` method selects a specified item within the toolbox."],["If the provided item is not selectable, calling this method has no effect."],["This method accepts one argument: the `IToolboxItem` to select or null to deselect."],["Calling `setSelectedItem()` does not return any value (void)."]]],[]]