Blockly가 2025년 11월 10일에 Raspberry Pi Foundation으로 이전되었습니다. 블로그 게시물과 FAQ를 읽어보세요.
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
blockly > 메뉴
기본 메뉴 클래스
서명:
export declare class Menu
생성자
| 생성자 |
수정자 |
설명 |
| (생성자)() |
|
새 Menu 인스턴스를 생성합니다. |
속성
| 속성 |
수정자 |
유형 |
설명 |
| openingCoords |
|
좌표 | null |
이 메뉴가 열리게 된 포인터다운 이벤트의 좌표입니다. 간단한 클릭으로 인해 메뉴 항목이 즉시 활성화되는 후속 포인터업 이벤트를 방지하는 데 사용됩니다. |
메서드
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-25(UTC)
[null,null,["최종 업데이트: 2025-07-25(UTC)"],[],["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"]]