Show / Hide Table of Contents

Class GoogleAppsCardV1DecoratedText

A widget that displays text with optional decorations such as a label above or below the text, an icon in front of the text, a selection widget, or a button after the text. For an example in Google Chat apps, see Display text with decorative text. Google Workspace add-ons and Chat apps:

Inheritance
object
GoogleAppsCardV1DecoratedText
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.HangoutsChat.v1.Data
Assembly: Google.Apis.HangoutsChat.v1.dll
Syntax
public class GoogleAppsCardV1DecoratedText : IDirectResponseSchema

Properties

BottomLabel

The text that appears below text. Always wraps.

Declaration
[JsonProperty("bottomLabel")]
public virtual string BottomLabel { get; set; }
Property Value
Type Description
string

Button

A button that a user can click to trigger an action.

Declaration
[JsonProperty("button")]
public virtual GoogleAppsCardV1Button Button { get; set; }
Property Value
Type Description
GoogleAppsCardV1Button

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
string

EndIcon

An icon displayed after the text. Supports built-in and custom icons.

Declaration
[JsonProperty("endIcon")]
public virtual GoogleAppsCardV1Icon EndIcon { get; set; }
Property Value
Type Description
GoogleAppsCardV1Icon

Icon

Deprecated in favor of startIcon.

Declaration
[JsonProperty("icon")]
public virtual GoogleAppsCardV1Icon Icon { get; set; }
Property Value
Type Description
GoogleAppsCardV1Icon

OnClick

This action is triggered when users click topLabel or bottomLabel.

Declaration
[JsonProperty("onClick")]
public virtual GoogleAppsCardV1OnClick OnClick { get; set; }
Property Value
Type Description
GoogleAppsCardV1OnClick

StartIcon

The icon displayed in front of the text.

Declaration
[JsonProperty("startIcon")]
public virtual GoogleAppsCardV1Icon StartIcon { get; set; }
Property Value
Type Description
GoogleAppsCardV1Icon

SwitchControl

A switch widget that a user can click to change its state and trigger an action.

Declaration
[JsonProperty("switchControl")]
public virtual GoogleAppsCardV1SwitchControl SwitchControl { get; set; }
Property Value
Type Description
GoogleAppsCardV1SwitchControl

Text

Required. The primary text. Supports simple formatting. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace add-ons.

Declaration
[JsonProperty("text")]
public virtual string Text { get; set; }
Property Value
Type Description
string

TopLabel

The text that appears above text. Always truncates.

Declaration
[JsonProperty("topLabel")]
public virtual string TopLabel { get; set; }
Property Value
Type Description
string

WrapText

The wrap text setting. If true, the text wraps and displays on multiple lines. Otherwise, the text is truncated. Only applies to text, not topLabel and bottomLabel.

Declaration
[JsonProperty("wrapText")]
public virtual bool? WrapText { get; set; }
Property Value
Type Description
bool?

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX