class Google::Apis::ChatV1::GoogleAppsCardV1OnClick
Attributes
An action that describes the behavior when the form is submitted. For example, an Apps Script can be invoked to handle the form. Corresponds to the JSON property `action` @return [Google::Apis::ChatV1::GoogleAppsCardV1Action]
A card is a UI element that can contain UI widgets such as text and images. For more information, see Cards . For example, the following JSON creates a card that has a header with the name, position, icons, and link for a contact, followed by a section with contact information like email and phone number. “` ` “header”: ` “title”: “Heba Salam”, “subtitle”: “Software Engineer”, “ imageStyle”: “ImageStyle.AVATAR”, “imageUrl”: “example.com/heba_salam. png”, “imageAltText”: “Avatar for Heba Salam” `, “sections” : [ ` “header”: “ Contact Info”, “widgets”: [ ` “decorated_text”: ` “icon”: ` “knownIcon”: “ EMAIL” `, “content”: “heba.salam@example.com” ` `, ` “decoratedText”: ` “icon”: ` “knownIcon”: “PERSON” `, “content”: “Online” ` `, ` “decoratedText”: ` “ icon”: ` “knownIcon”: “PHONE” `, “content”: “+1 (555) 555-1234” ` `, ` “ buttons”: [ ` “textButton”: ` “text”: “Share”, `, “onClick”: ` “openLink”: ` “ url”: “example.com/share” ` ` `, ` “textButton”: ` “text”: “Edit”, `, “ onClick”: ` “action”: ` “function”: “goToView”, “parameters”: [ ` “key”: “ viewType”, “value”: “EDIT” ` ], “loadIndicator”: “LoadIndicator.SPINNER” ` ` ` ] ` ], “collapsible”: true, “uncollapsibleWidgetsCount”: 3 ` ], “cardActions”: [ ` “actionLabel”: “Send Feedback”, “onClick”: ` “openLink”: ` “url”: “https:// example.com/feedback” ` ` ` ], “name”: “contact-card-K3wB6arF2H9L” ` “` Corresponds to the JSON property `card` @return [Google::Apis::ChatV1::GoogleAppsCardV1Card]
An action that describes the behavior when the form is submitted. For example, an Apps Script can be invoked to handle the form. Corresponds to the JSON property `openDynamicLinkAction` @return [Google::Apis::ChatV1::GoogleAppsCardV1Action]
If specified, this onClick triggers an open link action. Corresponds to the JSON property `openLink` @return [Google::Apis::ChatV1::GoogleAppsCardV1OpenLink]
Public Class Methods
# File lib/google/apis/chat_v1/classes.rb, line 1668 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/chat_v1/classes.rb, line 1673 def update!(**args) @action = args[:action] if args.key?(:action) @card = args[:card] if args.key?(:card) @open_dynamic_link_action = args[:open_dynamic_link_action] if args.key?(:open_dynamic_link_action) @open_link = args[:open_link] if args.key?(:open_link) end