Class: Google::Apps::Card::V1::Carousel

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/apps/card/v1/card.rb

Overview

A carousel, also known as a slider, rotates and displays a list of widgets in a slideshow format, with buttons navigating to the previous or next widget.

For example, this is a JSON representation of a carousel that contains three text paragraph widgets.

{
  "carouselCards": [
    {
      "widgets": [
        {
          "textParagraph": {
            "text": "First text paragraph in carousel",
          }
        }
      ]
    },
    {
      "widgets": [
        {
          "textParagraph": {
            "text": "Second text paragraph in carousel",
          }
        }
      ]
    },
    {
      "widgets": [
        {
          "textParagraph": {
            "text": "Third text paragraph in carousel",
          }
        }
      ]
    }
  ]
}

Google Chat apps:

Defined Under Namespace

Classes: CarouselCard

Instance Attribute Summary collapse

Instance Attribute Details

Returns A list of cards included in the carousel.

Returns:



2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
# File 'proto_docs/google/apps/card/v1/card.rb', line 2194

class Carousel
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # A card that can be displayed as a carousel item.
  # [Google Chat apps](https://developers.google.com/workspace/chat):
  # @!attribute [rw] widgets
  #   @return [::Array<::Google::Apps::Card::V1::Card::NestedWidget>]
  #     A list of widgets displayed in the carousel card. The widgets are
  #     displayed in the order that they are specified.
  # @!attribute [rw] footer_widgets
  #   @return [::Array<::Google::Apps::Card::V1::Card::NestedWidget>]
  #     A list of widgets displayed at the bottom of the carousel card. The
  #     widgets are displayed in the order that they are specified.
  class CarouselCard
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end