透過集合功能整理內容
你可以依據偏好儲存及分類內容。
blockly > 選單
基本選單類別。
Signature:
export declare class Menu
建構函式
屬性
屬性 |
修飾符 |
類型 |
說明 |
openingCoords |
|
座標 | 空值 |
導致開啟此選單的指標向下事件的座標。用於防止簡單的點按動作立即啟用選單項目,進而產生後續的 pointerup 事件。 |
方法
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[],["The `Menu` class provides a basic menu structure. Key actions include constructing a new `Menu` instance, which is done via the constructor. The class has a `openingCoords` property to track the coordinates of the initiating mouse event. It includes methods to `dispose` of the menu and `render` it, which involves creating the necessary DOM elements.\n"]]