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 > MenuOption
드롭다운 메뉴의 개별 옵션입니다. 메뉴 구분자 항목의 경우 문자열 리터럴 separator이고 일반 작업 메뉴 항목의 경우 배열일 수 있습니다. 후자의 경우 첫 번째 요소는 사람이 읽을 수 있는 값 (텍스트, ImageProperties 객체 또는 HTML 요소)이고 두 번째 요소는 언어 중립적인 값입니다.
서명:
export type MenuOption = [string | ImageProperties | HTMLElement, string] | 'separator';
참조: ImageProperties
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-25(UTC)
[null,null,["최종 업데이트: 2025-07-25(UTC)"],[],["The `MenuOption` type defines a single option within a dropdown menu. It's structured as a tuple, with two elements. The first element is the human-readable representation of the option, which can be either a string or an image. The second element is a language-neutral string value associated with that option. This type is used within the Blockly system.\n"]]