View Source GoogleApi.Chat.V1.Model.GoogleAppsCardV1Carousel (google_api_chat v0.42.0)

Developer Preview: 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:

Attributes

  • carouselCards (type: list(GoogleApi.Chat.V1.Model.GoogleAppsCardV1CarouselCard.t), default: nil) - A list of cards included in the carousel.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() :: %GoogleApi.Chat.V1.Model.GoogleAppsCardV1Carousel{
  carouselCards:
    [GoogleApi.Chat.V1.Model.GoogleAppsCardV1CarouselCard.t()] | nil
}

Functions

decode(value, options)

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.