קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
blockly > MenuOption
אפשרות ספציפית בתפריט הנפתח. יכול להיות מחרוזת ליסטרית separator
לפריט מפריד בתפריט, או מערך לפריטים רגילים בתפריט הפעולות. במקרה השני, הרכיב הראשון הוא הערך שאפשר לקרוא על ידי בני אדם (טקסט, אובייקט ImageProperties או רכיב HTML), והרכיב השני הוא הערך ללא תלות בשפה.
Signature:
export type MenuOption = [string | ImageProperties | HTMLElement, string] | 'separator';
מקורות מידע: ImageProperties
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת 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"],null,[]]