調査アンケート: Blockly のご利用体験についてお聞かせください
アンケートを開始
ブロックする >[ブロック] >setCollapsed
Block.setCombined() メソッド
ブロックを折りたたむかどうかを設定します。
署名:
setCollapsed(collapsed: boolean): void;
パラメータ
パラメータ |
型 |
説明 |
閉じています |
ブール値 |
閉じている場合は true。 |
戻り値:
void
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-08-22 UTC。
[null,null,["最終更新日 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"]]