Enum TriggerSource
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
TriggerSource
การแจกแจงที่ระบุแหล่งที่มาของเหตุการณ์ที่ทริกเกอร์ให้เริ่มทํางาน
หากต้องการเรียกใช้ enum ให้เรียกคลาสหลัก ชื่อ และพร็อพเพอร์ตี้ของ enum นั้น เช่น
ScriptApp.TriggerSource.SPREADSHEETS
พร็อพเพอร์ตี้
พร็อพเพอร์ตี้ | ประเภท | คำอธิบาย |
SPREADSHEETS | Enum | Google ชีตทริกเกอร์ให้เริ่มทํางาน |
CLOCK | Enum | เหตุการณ์ที่ทำงานตามเวลาทริกเกอร์ให้ทริกเกอร์เริ่มทํางาน |
FORMS | Enum | Google ฟอร์มทริกเกอร์ให้ทำงาน |
DOCUMENTS | Enum | Google เอกสารทริกเกอร์ให้เริ่มทํางาน |
CALENDAR | Enum | Google ปฏิทินทริกเกอร์ให้ทำงาน |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003e\u003ccode\u003eTriggerSource\u003c/code\u003e is an enum used to identify the event source that activates a trigger.\u003c/p\u003e\n"],["\u003cp\u003eCalling an enum involves referencing its parent class, name, and specific property, for example, \u003ccode\u003eScriptApp.TriggerSource.SPREADSHEETS\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe properties of \u003ccode\u003eTriggerSource\u003c/code\u003e include \u003ccode\u003eSPREADSHEETS\u003c/code\u003e, \u003ccode\u003eCLOCK\u003c/code\u003e, \u003ccode\u003eFORMS\u003c/code\u003e, \u003ccode\u003eDOCUMENTS\u003c/code\u003e, and \u003ccode\u003eCALENDAR\u003c/code\u003e, indicating different event sources like Google Sheets, time-driven events, Google Forms, Google Docs, and Google Calendar, respectively.\u003c/p\u003e\n"]]],[],null,["# Enum TriggerSource\n\nTriggerSource\n\nAn enumeration denoting the source of the event that causes the trigger to fire.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nScriptApp.TriggerSource.SPREADSHEETS`. \n\n### Properties\n\n| Property | Type | Description |\n|----------------|--------|-------------------------------------------------|\n| `SPREADSHEETS` | `Enum` | Google Sheets causes the trigger to fire. |\n| `CLOCK` | `Enum` | A time-driven event causes the trigger to fire. |\n| `FORMS` | `Enum` | Google Forms causes the trigger to fire. |\n| `DOCUMENTS` | `Enum` | Google Docs causes the trigger to fire. |\n| `CALENDAR` | `Enum` | Google Calendar causes the trigger to fire. |"]]