Base class for all widgets that can be added to a Card
.
Class Widget
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[null,null,["Last updated 2024-10-31 UTC."],[[["\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)."]]