調査アンケート: Blockly のご利用体験についてお聞かせください
アンケートを開始
ブロックする >BlockSvg >generateContextMenu
このブロックのコンテキスト メニューを生成します。
署名:
protected generateContextMenu(): Array<ContextMenuOption | LegacyContextMenuOption> | null;
戻り値:
Array<ContextMenuOption |LegacyContextMenuOption>|null
コンテキスト メニュー オプション。メニューがない場合は null。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-09-12 UTC。
[null,null,["最終更新日 2024-09-12 UTC。"],[[["The `generateContextMenu()` method is used to create a context menu specifically for a BlockSvg object within Blockly."],["This method returns an array of options for the context menu, which can either be of type ContextMenuOption or LegacyContextMenuOption, or it can return null if no menu is to be displayed."],["The method is protected and is intended for internal use within the Blockly library or for developers extending its functionality."]]],[]]