Google Chat V1 API - Class Google::Apps::Card::V1::CollapseControl (v0.18.0)

Reference documentation and code samples for the Google Chat V1 API class Google::Apps::Card::V1::CollapseControl.

Represent an expand and collapse control.

Google Workspace add-ons and Chat apps:

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#collapse_button

def collapse_button() -> ::Google::Apps::Card::V1::Button
Returns
  • (::Google::Apps::Card::V1::Button) — Optional. Define a customizable button to collapse the section. Both expand_button and collapse_button field must be set. Only one field set will not take into effect. If this field isn't set, the default button is used.

#collapse_button=

def collapse_button=(value) -> ::Google::Apps::Card::V1::Button
Parameter
  • value (::Google::Apps::Card::V1::Button) — Optional. Define a customizable button to collapse the section. Both expand_button and collapse_button field must be set. Only one field set will not take into effect. If this field isn't set, the default button is used.
Returns
  • (::Google::Apps::Card::V1::Button) — Optional. Define a customizable button to collapse the section. Both expand_button and collapse_button field must be set. Only one field set will not take into effect. If this field isn't set, the default button is used.

#expand_button

def expand_button() -> ::Google::Apps::Card::V1::Button
Returns
  • (::Google::Apps::Card::V1::Button) — Optional. Define a customizable button to expand the section. Both expand_button and collapse_button field must be set. Only one field set will not take into effect. If this field isn't set, the default button is used.

#expand_button=

def expand_button=(value) -> ::Google::Apps::Card::V1::Button
Parameter
  • value (::Google::Apps::Card::V1::Button) — Optional. Define a customizable button to expand the section. Both expand_button and collapse_button field must be set. Only one field set will not take into effect. If this field isn't set, the default button is used.
Returns
  • (::Google::Apps::Card::V1::Button) — Optional. Define a customizable button to expand the section. Both expand_button and collapse_button field must be set. Only one field set will not take into effect. If this field isn't set, the default button is used.

#horizontal_alignment

def horizontal_alignment() -> ::Google::Apps::Card::V1::Widget::HorizontalAlignment
Returns

#horizontal_alignment=

def horizontal_alignment=(value) -> ::Google::Apps::Card::V1::Widget::HorizontalAlignment
Parameter
Returns