所有可新增至 Card
的小工具的基礎類別。
Class Widget
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003eWidget serves as the fundamental building block for all interactive elements within Google Workspace add-ons.\u003c/p\u003e\n"],["\u003cp\u003eEvery widget, whether it's a text box, button or image, inherits from this core Widget class to ensure consistent behavior and properties.\u003c/p\u003e\n"],["\u003cp\u003eBy extending the Widget class, developers can craft interactive and dynamic user interfaces within their add-ons, enhancing user experience and functionality.\u003c/p\u003e\n"]]],[],null,["# Class Widget\n\nWidget\n\nBase class for all widgets that can be added to a [Card](/apps-script/reference/card-service/card)."]]