blockly > BlockSvg > generateContextMenu
Genera il menu contestuale per questo blocco.
Firma:
protected generateContextMenu(): Array<ContextMenuOption | LegacyContextMenuOption> | null;
Resi:
Array<ContextMenuOption | LegacyContextMenuOption> | null
Opzioni del menu contestuale o null se il menu non è presente.
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2024-09-12 UTC.
[null,null,["Ultimo aggiornamento 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."]]],[]]