Google Chat V1 API - Class Google::Apps::Card::V1::Grid::GridItem (v0.6.0)

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

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:

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#id

def id() -> ::String
Returns
  • (::String) — A user-specified identifier for this grid item. This identifier is returned in the parent grid's onClick callback parameters.

#id=

def id=(value) -> ::String
Parameter
  • value (::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.

#image

def image() -> ::Google::Apps::Card::V1::ImageComponent
Returns

#image=

def image=(value) -> ::Google::Apps::Card::V1::ImageComponent
Parameter
Returns

#layout

def layout() -> ::Google::Apps::Card::V1::Grid::GridItem::GridItemLayout
Returns

#layout=

def layout=(value) -> ::Google::Apps::Card::V1::Grid::GridItem::GridItemLayout
Parameter
Returns

#subtitle

def subtitle() -> ::String
Returns
  • (::String) — The grid item's subtitle.

#subtitle=

def subtitle=(value) -> ::String
Parameter
  • value (::String) — The grid item's subtitle.
Returns
  • (::String) — The grid item's subtitle.

#title

def title() -> ::String
Returns
  • (::String) — The grid item's title.

#title=

def title=(value) -> ::String
Parameter
  • value (::String) — The grid item's title.
Returns
  • (::String) — The grid item's title.