Blockly は 2025 年 11 月 10 日に Raspberry Pi Foundation に移行しました。ブログ投稿とよくある質問をご覧ください。
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
ブロックする >ToolboxCategory >updateFlyoutContents
ToolboxCategory.updateFlyoutContents() メソッド
フライアウトに表示されるコンテンツを更新します。コンテンツの更新時にフライアウトが開いている場合は、ツールボックスの refreshSelection も呼び出す必要があります。
署名:
updateFlyoutContents(contents: FlyoutDefinition | string): void;
パラメータ
| パラメータ |
型 |
説明 |
| コンテンツ |
FlyoutDefinition |文字列 |
フライアウトに表示されるコンテンツ。文字列を指定して動的なカテゴリを作成できます。 |
戻り値:
void
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[null,null,["最終更新日 2025-07-25 UTC。"],[],["The `updateFlyoutContents()` method within the `ToolboxCategory` class modifies the content displayed in the flyout. It accepts either a `FlyoutDefinition` or a string as input to define the new flyout contents. A string input allows for creating dynamic categories. If the flyout is open during the update, `refreshSelection` must be called on the toolbox to reflect the changes. The method returns nothing.\n"]]