google_api_chat v0.4.0 GoogleApi.Chat.V1.Model.KeyValue View Source
A UI element contains a key (label) and a value (content). And this element may also contain some actions such as onclick button.
Attributes
- bottomLabel (String.t): The text of the bottom label. Formatted text supported. Defaults to:
null
. - button (Button): A button that can be clicked to trigger an action. Defaults to:
null
. - content (String.t): The text of the content. Formatted text supported and always required. Defaults to:
null
. - contentMultiline (boolean()): If the content should be multiline. Defaults to:
null
. icon (String.t): An enum value that will be replaced by the Chat API with the corresponding icon image. Defaults to:
null
.- Enum - one of [ICON_UNSPECIFIED, AIRPLANE, BOOKMARK, BUS, CAR, CLOCK, CONFIRMATION_NUMBER_ICON, DOLLAR, DESCRIPTION, EMAIL, EVENT_PERFORMER, EVENT_SEAT, FLIGHT_ARRIVAL, FLIGHT_DEPARTURE, HOTEL, HOTEL_ROOM_TYPE, INVITE, MAP_PIN, MEMBERSHIP, MULTIPLE_PEOPLE, OFFER, PERSON, PHONE, RESTAURANT_ICON, SHOPPING_CART, STAR, STORE, TICKET, TRAIN, VIDEO_CAMERA, VIDEO_PLAY]
- iconUrl (String.t): The icon specified by a URL. Defaults to:
null
. - onClick (OnClick): The onclick action. Only the top label, bottom label and content region are clickable. Defaults to:
null
. - topLabel (String.t): The text of the top label. Formatted text supported. Defaults to:
null
.
Link to this section Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Link to this section Types
Link to this type
t()
View Source
t()
View Source
t() :: %GoogleApi.Chat.V1.Model.KeyValue{
bottomLabel: any(),
button: GoogleApi.Chat.V1.Model.Button.t(),
content: any(),
contentMultiline: any(),
icon: any(),
iconUrl: any(),
onClick: GoogleApi.Chat.V1.Model.OnClick.t(),
topLabel: any()
}
t() :: %GoogleApi.Chat.V1.Model.KeyValue{ bottomLabel: any(), button: GoogleApi.Chat.V1.Model.Button.t(), content: any(), contentMultiline: any(), icon: any(), iconUrl: any(), onClick: GoogleApi.Chat.V1.Model.OnClick.t(), topLabel: any() }
Link to this section Functions
Link to this function
decode(value, options) View Source
Unwrap a decoded JSON object into its complex fields.