Reference documentation and code samples for the Google Chat V1 API class Google::Apps::Card::V1::Carousel.
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",
}
}
]
}
]
}
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#carousel_cards
def carousel_cards() -> ::Array<::Google::Apps::Card::V1::Carousel::CarouselCard>- (::Array<::Google::Apps::Card::V1::Carousel::CarouselCard>) — A list of cards included in the carousel.
#carousel_cards=
def carousel_cards=(value) -> ::Array<::Google::Apps::Card::V1::Carousel::CarouselCard>- value (::Array<::Google::Apps::Card::V1::Carousel::CarouselCard>) — A list of cards included in the carousel.
- (::Array<::Google::Apps::Card::V1::Carousel::CarouselCard>) — A list of cards included in the carousel.