blockly > Blockieren > setCollapsed
Methode Block.setMinimierd()
Legen Sie fest, ob der Block minimiert werden soll.
Unterschrift:
setCollapsed(collapsed: boolean): void;
Parameter
Parameter |
Typ |
Beschreibung |
Minimiert |
boolean |
"True", wenn minimiert wird. |
Gibt zurück:
voidm
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-08-22 (UTC).
[null,null,["Zuletzt aktualisiert: 2024-08-22 (UTC)."],[[["The `setCollapsed()` method controls the visual state of a block, determining whether it appears collapsed or expanded."],["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 within the Blockly workspace, providing a way to manage the display of potentially complex or lengthy block structures."]]],["The `Block.setCollapsed()` method determines if a block is collapsed. It accepts a boolean parameter, `collapsed`, where `true` indicates a collapsed state. The method's purpose is to set the block's visibility state accordingly. It doesn't return any value. The method takes `true` to collapse the block and it is a void method.\n"]]