Enum InputType
InputType
Enum ที่กําหนดประเภทอินพุตของวิดเจ็ต
InputType.TEXT
หมายความว่าอินพุตยอมรับข้อความปกติรวมถึงอักขระทั้งหมด
InputType.INTEGER
หมายความว่าอินพุตยอมรับจำนวนเต็ม
InputType.FLOAT
หมายความว่าอินพุตยอมรับจํานวนจุดลอยตัว
InputType.EMAIL
หมายความว่าอินพุตยอมรับอีเมล
หากต้องการเรียกใช้ enum ให้เรียกคลาสหลัก ชื่อ และพร็อพเพอร์ตี้ของ enum นั้น เช่น
CardService.InputType.INTEGER
พร็อพเพอร์ตี้
พร็อพเพอร์ตี้ | ประเภท | คำอธิบาย |
TEXT | Enum | ยอมรับข้อความปกติ |
INTEGER | Enum | ยอมรับจํานวนเต็ม |
FLOAT | Enum | ยอมรับตัวเลขเป็นจุดทศนิยม |
EMAIL | Enum | ยอมรับอีเมล |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 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"]]