Class: Google::Apis::ChatV1::GoogleAppsCardV1CardFixedFooter
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::GoogleAppsCardV1CardFixedFooter
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/chat_v1/classes.rb,
lib/google/apis/chat_v1/representations.rb,
lib/google/apis/chat_v1/representations.rb
Overview
A persistent (sticky) footer that that appears at the bottom of the card.
Setting fixedFooter
without specifying a primaryButton
or a
secondaryButton
causes an error. For Chat apps, you can use fixed footers in
dialogs, but not card
messages.
For an example in Google Chat apps, see Add a persistent footer. Google Workspace Add-ons and Chat apps:
Instance Attribute Summary collapse
-
#primary_button ⇒ Google::Apis::ChatV1::GoogleAppsCardV1Button
A text, icon, or text and icon button that users can click.
-
#secondary_button ⇒ Google::Apis::ChatV1::GoogleAppsCardV1Button
A text, icon, or text and icon button that users can click.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAppsCardV1CardFixedFooter
constructor
A new instance of GoogleAppsCardV1CardFixedFooter.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAppsCardV1CardFixedFooter
Returns a new instance of GoogleAppsCardV1CardFixedFooter.
1723 1724 1725 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1723 def initialize(**args) update!(**args) end |
Instance Attribute Details
#primary_button ⇒ Google::Apis::ChatV1::GoogleAppsCardV1Button
A text, icon, or text and icon button that users can click. For an example in
Google Chat apps, see Add a button. To make an image a
clickable button, specify an Image
(not an ImageComponent
) and set an
onClick
action. Google Workspace Add-ons and Chat apps:
Corresponds to the JSON property primaryButton
1711 1712 1713 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1711 def @primary_button end |
#secondary_button ⇒ Google::Apis::ChatV1::GoogleAppsCardV1Button
A text, icon, or text and icon button that users can click. For an example in
Google Chat apps, see Add a button. To make an image a
clickable button, specify an Image
(not an ImageComponent
) and set an
onClick
action. Google Workspace Add-ons and Chat apps:
Corresponds to the JSON property secondaryButton
1721 1722 1723 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1721 def @secondary_button end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1728 1729 1730 1731 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1728 def update!(**args) @primary_button = args[:primary_button] if args.key?(:primary_button) @secondary_button = args[:secondary_button] if args.key?(:secondary_button) end |