blockly > MenuOption

드롭다운 메뉴의 개별 옵션입니다. 메뉴 구분자 항목의 경우 문자열 리터럴 separator이고 일반 작업 메뉴 항목의 경우 배열일 수 있습니다. 후자의 경우 첫 번째 요소는 사람이 읽을 수 있는 값 (텍스트, ImageProperties 객체 또는 HTML 요소)이고 두 번째 요소는 언어 중립적인 값입니다.

서명:

export type MenuOption = [string | ImageProperties | HTMLElement, string] | 'separator';

참조: ImageProperties