blockly > WorkspaceSvg > deleteVariableById
Metoda WorkspaceSvg.deleteZmiennaById()
Usuń zmienną na podstawie przekazywanego identyfikatora. Zaktualizuj wysuwane menu, aby od razu było widać, że zmienna została usunięta.
Podpis:
deleteVariableById(id: string): void;
Parametry
Parametr |
Typ |
Opis |
id |
ciąg znaków |
Identyfikator zmiennej do usunięcia. |
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-21 UTC.
[null,null,["Ostatnia aktualizacja: 2024-08-21 UTC."],[[["The `deleteVariableById` method removes a variable from the WorkspaceSvg based on its unique ID."],["This method also updates the flyout to reflect the variable deletion immediately."],["The method accepts a single argument, a string representing the ID of the variable to be deleted, and returns void."]]],[]]