blockly > WorkspaceSvg > removeTopBlock
Metoda WorkspaceSvg.removeTopBlock()
Usuwa bryłę z listy głównych bloków.
Podpis:
removeTopBlock(block: Block): void;
Parametry
Parametr |
Typ |
Opis |
blok |
Zablokuj |
Zablokuj, aby usunąć. |
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-28 UTC.
[null,null,["Ostatnia aktualizacja: 2024-08-28 UTC."],[[["The `removeTopBlock` method is part of the `WorkspaceSvg` class in Blockly and is used to manage the top-level blocks in the workspace."],["It takes a single parameter, `block`, which is an instance of the `Block` class and represents the block to be removed from the top-level list."],["This method does not return any value and is primarily used for maintaining the internal structure of the workspace by removing blocks from its top-level list."]]],[]]