Enum TriggerSource
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
TriggerSource
ספירה שמציינת את המקור של האירוע שגורם להפעלת הטריגר.
כדי לקרוא למאפיין enum, צריך לקרוא לכיתה ההורה, לשם ולנכס שלו. לדוגמה,
ScriptApp.TriggerSource.SPREADSHEETS
.
מאפיינים
נכס | סוג | תיאור |
SPREADSHEETS | Enum | Google Sheets גורם להפעלת הטריגר. |
CLOCK | Enum | אירוע מבוסס-זמן גורם להפעלת הטריגר. |
FORMS | Enum | Google Forms גורם להפעלת הטריגר. |
DOCUMENTS | Enum | Google Docs גורם להפעלת הטריגר. |
CALENDAR | Enum | יומן Google גורם להפעלת הטריגר. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 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. |"]]