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.
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
- (::Google::Apps::Card::V1::ImageComponent) — The image that displays in the grid item.
#image=
def image=(value) -> ::Google::Apps::Card::V1::ImageComponent
Parameter
- value (::Google::Apps::Card::V1::ImageComponent) — The image that displays in the grid item.
Returns
- (::Google::Apps::Card::V1::ImageComponent) — The image that displays in the grid item.
#layout
def layout() -> ::Google::Apps::Card::V1::Grid::GridItem::GridItemLayout
Returns
- (::Google::Apps::Card::V1::Grid::GridItem::GridItemLayout) — The layout to use for the grid item.
#layout=
def layout=(value) -> ::Google::Apps::Card::V1::Grid::GridItem::GridItemLayout
Parameter
- value (::Google::Apps::Card::V1::Grid::GridItem::GridItemLayout) — The layout to use for the grid item.
Returns
- (::Google::Apps::Card::V1::Grid::GridItem::GridItemLayout) — The layout to use for the grid item.
#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.