google_api_chat v0.6.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
nil
. - button (GoogleApi.Chat.V1.Model.Button.t): A button that can be clicked to trigger an action. Defaults to
nil
. - content (String.t): The text of the content. Formatted text supported and always required. Defaults to
nil
. - contentMultiline (boolean()): If the content should be multiline. Defaults to
nil
. - icon (String.t): An enum value that will be replaced by the Chat API with the
corresponding icon image. Defaults to
nil
. - iconUrl (String.t): The icon specified by a URL. Defaults to
nil
. - onClick (GoogleApi.Chat.V1.Model.OnClick.t): The onclick action. Only the top label, bottom label and content region
are clickable. Defaults to
nil
. - topLabel (String.t): The text of the top label. Formatted text supported. Defaults to
nil
.
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: String.t(),
button: GoogleApi.Chat.V1.Model.Button.t(),
content: String.t(),
contentMultiline: boolean(),
icon: String.t(),
iconUrl: String.t(),
onClick: GoogleApi.Chat.V1.Model.OnClick.t(),
topLabel: String.t()
}
t() :: %GoogleApi.Chat.V1.Model.KeyValue{ bottomLabel: String.t(), button: GoogleApi.Chat.V1.Model.Button.t(), content: String.t(), contentMultiline: boolean(), icon: String.t(), iconUrl: String.t(), onClick: GoogleApi.Chat.V1.Model.OnClick.t(), topLabel: String.t() }
Link to this section Functions
Link to this function
decode(value, options) View Source
Unwrap a decoded JSON object into its complex fields.