コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
blockly > ContextMenuRegistry
署名:
export declare namespace ContextMenuRegistry
列挙型
列挙 |
説明 |
ScopeType |
このメニュー項目をレンダリングする場所。メニュー項目を複数のスコープでレンダリングする必要がある場合(ブロックとワークスペースの両方でレンダリングする場合など)は、スコープごとに登録する必要があります。 |
インターフェース
型エイリアス
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[null,null,["最終更新日 2025-07-25 UTC。"],[],["The `ContextMenuRegistry` namespace manages context menu items in Blockly. It defines an enumeration `ScopeType` to specify where a menu item should appear. Four interfaces are provided: `ContextMenuOption` and `LegacyContextMenuOption` represent menu items for display. `RegistryItem` represents menu items within the registry, and `Scope` represents the rendering context, such as a workspace or block, providing context-dependent data. Developers should use `ContextMenuOption` when building new code.\n"],null,[]]