Class: Google::Apps::Card::V1::Grid::GridItem

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

Overview

Represents an item in a grid layout. Items can contain text, an image, or both text and an image.

Google Workspace add-ons and Chat apps:

Defined Under Namespace

Modules: GridItemLayout

Instance Attribute Summary collapse

Instance Attribute Details

#id::String

A user-specified identifier for this grid item. This identifier is returned in the parent grid's onClick callback parameters.

Returns:

  • (::String)

    A user-specified identifier for this grid item. This identifier is returned in the parent grid's onClick callback parameters.



1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
# File 'proto_docs/google/apps/card/v1/card.rb', line 1976

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

  # Represents the various layout options available for a grid item.
  #
  # [Google Workspace add-ons and Chat
  # apps](https://developers.google.com/workspace/extend):
  module GridItemLayout
    # Don't use. Unspecified.
    GRID_ITEM_LAYOUT_UNSPECIFIED = 0

    # The title and subtitle are shown below the grid item's image.
    TEXT_BELOW = 1

    # The title and subtitle are shown above the grid item's image.
    TEXT_ABOVE = 2
  end
end

#image::Google::Apps::Card::V1::ImageComponent

Returns The image that displays in the grid item.

Returns:



1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
# File 'proto_docs/google/apps/card/v1/card.rb', line 1976

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

  # Represents the various layout options available for a grid item.
  #
  # [Google Workspace add-ons and Chat
  # apps](https://developers.google.com/workspace/extend):
  module GridItemLayout
    # Don't use. Unspecified.
    GRID_ITEM_LAYOUT_UNSPECIFIED = 0

    # The title and subtitle are shown below the grid item's image.
    TEXT_BELOW = 1

    # The title and subtitle are shown above the grid item's image.
    TEXT_ABOVE = 2
  end
end

#layout::Google::Apps::Card::V1::Grid::GridItem::GridItemLayout

Returns The layout to use for the grid item.

Returns:



1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
# File 'proto_docs/google/apps/card/v1/card.rb', line 1976

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

  # Represents the various layout options available for a grid item.
  #
  # [Google Workspace add-ons and Chat
  # apps](https://developers.google.com/workspace/extend):
  module GridItemLayout
    # Don't use. Unspecified.
    GRID_ITEM_LAYOUT_UNSPECIFIED = 0

    # The title and subtitle are shown below the grid item's image.
    TEXT_BELOW = 1

    # The title and subtitle are shown above the grid item's image.
    TEXT_ABOVE = 2
  end
end

#subtitle::String

Returns The grid item's subtitle.

Returns:

  • (::String)

    The grid item's subtitle.



1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
# File 'proto_docs/google/apps/card/v1/card.rb', line 1976

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

  # Represents the various layout options available for a grid item.
  #
  # [Google Workspace add-ons and Chat
  # apps](https://developers.google.com/workspace/extend):
  module GridItemLayout
    # Don't use. Unspecified.
    GRID_ITEM_LAYOUT_UNSPECIFIED = 0

    # The title and subtitle are shown below the grid item's image.
    TEXT_BELOW = 1

    # The title and subtitle are shown above the grid item's image.
    TEXT_ABOVE = 2
  end
end

#title::String

Returns The grid item's title.

Returns:

  • (::String)

    The grid item's title.



1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
# File 'proto_docs/google/apps/card/v1/card.rb', line 1976

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

  # Represents the various layout options available for a grid item.
  #
  # [Google Workspace add-ons and Chat
  # apps](https://developers.google.com/workspace/extend):
  module GridItemLayout
    # Don't use. Unspecified.
    GRID_ITEM_LAYOUT_UNSPECIFIED = 0

    # The title and subtitle are shown below the grid item's image.
    TEXT_BELOW = 1

    # The title and subtitle are shown above the grid item's image.
    TEXT_ABOVE = 2
  end
end