Survei Riset: Ceritakan pengalaman Anda dengan Blockly
Mulai survei
blockly > BlockSvg > generateContextMenu
Buat menu konteks untuk blok ini.
Tanda Tangan:
protected generateContextMenu(): Array<ContextMenuOption | LegacyContextMenuOption> | null;
Hasil:
Array<ContextMenuOption | LegacyContextMenuOption> | null (kosong)
Opsi menu konteks atau null jika tidak ada menu.
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-09-12 UTC.
[null,null,["Terakhir diperbarui pada 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."]]],[]]