blockly > BlockSvg > setCollapsed
Metoda BlockSvg.setZwiń()
Określ, czy bryła ma być zwinięty czy nie.
Podpis:
setCollapsed(collapsed: boolean): void;
Parametry
Parametr |
Typ |
Opis |
zwinięto |
wartość logiczna |
Prawda, jeśli jest zwinięta. |
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-29 UTC.
[null,null,["Ostatnia aktualizacja: 2024-08-29 UTC."],[[["The `setCollapsed()` method controls the visual state of a BlockSvg element, determining whether it appears expanded or collapsed."],["It accepts a single boolean parameter, `collapsed`, where `true` sets the block to a collapsed state and `false` to an expanded state."],["Calling this method affects the visual representation of the block but doesn't return any value."]]],[]]