Enum InputType
InputType
enum שמגדיר את סוג הקלט של הווידג'ט.
הערך InputType.TEXT
מציין שהקלט מקבל טקסט רגיל, כולל כל התווים.
InputType.INTEGER
מציין שהקלט מקבל מספר שלם.
InputType.FLOAT
– המשמעות היא שהקלט מקבל מספר נקודה צפה (floating-point).
InputType.EMAIL
מציין שהקלט מקבל כתובת אימייל.
כדי לקרוא למאפיין enum, צריך לקרוא לכיתה ההורה, לשם ולנכס שלו. לדוגמה,
CardService.InputType.INTEGER
.
מאפיינים
נכס | סוג | תיאור |
TEXT | Enum | מקבלים טקסט רגיל. |
INTEGER | Enum | מקבלים מספר שלם. |
FLOAT | Enum | קבלת מספר נקודה צפה (floating-point). |
EMAIL | Enum | מאשרים כתובת אימייל. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-12-02 (שעון UTC).
[null,null,["עדכון אחרון: 2024-12-02 (שעון UTC)."],[[["InputType is an enum defining the accepted input type for a widget, such as text, integer, float, or email."],["To utilize an enum, reference its parent class, name, and property, for instance: `CardService.InputType.INTEGER`."],["This feature is currently in Developer Preview and accessible through the Google Workspace Developer Preview Program."]]],["`InputType` is an enum defining acceptable input types for a widget. It includes `TEXT` for all characters, `INTEGER` for whole numbers, `FLOAT` for decimal numbers, and `EMAIL` for email addresses. Each type is called using its parent class, name, and property, like `CardService.InputType.INTEGER`. This feature is part of the Google Workspace Developer Preview Program. Each Input Type Property can be referenced in a table to explain it in detail, such as Type, and Description.\n"]]