Show / Hide Table of Contents

Class Chip

A text, icon, or text and icon chip that users can click.

Google Workspace add-ons and Chat apps:

Inheritance
object
Chip
Implements
IMessage<Chip>
IEquatable<Chip>
IDeepCloneable<Chip>
IBufferMessage
IMessage
Inherited Members
object.GetHashCode()
object.GetType()
object.ToString()
Namespace: Google.Apps.Card.V1
Assembly: Google.Apps.Card.V1.dll
Syntax
public sealed class Chip : IMessage<Chip>, IEquatable<Chip>, IDeepCloneable<Chip>, IBufferMessage, IMessage

Constructors

Chip()

Declaration
public Chip()

Chip(Chip)

Declaration
public Chip(Chip other)
Parameters
Type Name Description
Chip other

Properties

AltText

The alternative text that's used for accessibility.

Set descriptive text that lets users know what the chip does. For example, if a chip opens a hyperlink, write: "Opens a new browser tab and navigates to the Google Chat developer documentation at https://developers.google.com/workspace/chat".

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

Disabled

Whether the chip is in an inactive state and ignores user actions. Defaults to false.

Declaration
public bool Disabled { get; set; }
Property Value
Type Description
bool

Enabled

Whether the chip is in an active state and responds to user actions. Defaults to true. Deprecated. Use disabled instead.

Declaration
[Obsolete]
public bool Enabled { get; set; }
Property Value
Type Description
bool

Icon

The icon image. If both icon and text are set, then the icon appears before the text.

Declaration
public Icon Icon { get; set; }
Property Value
Type Description
Icon

Label

The text displayed inside the chip.

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

OnClick

Optional. The action to perform when a user clicks the chip, such as opening a hyperlink or running a custom function.

Declaration
public OnClick OnClick { get; set; }
Property Value
Type Description
OnClick
In this article
Back to top Generated by DocFX