Class GoogleAppsCardV1SwitchControl
Either a toggle-style switch or a checkbox inside a decoratedText
widget. Google Workspace Add-ons and Chat
apps: Only supported in the decoratedText
widget.
Implements
Inherited Members
Namespace: Google.Apis.HangoutsChat.v1.Data
Assembly: Google.Apis.HangoutsChat.v1.dll
Syntax
public class GoogleAppsCardV1SwitchControl : IDirectResponseSchema
Properties
ControlType
How the switch appears in the user interface. Google Workspace Add-ons and Chat apps:
Declaration
[JsonProperty("controlType")]
public virtual string ControlType { get; set; }
Property Value
Type | Description |
---|---|
string |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
Name
The name by which the switch widget is identified in a form input event. For details about working with form inputs, see Receive form data.
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
OnChangeAction
The action to perform when the switch state is changed, such as what function to run.
Declaration
[JsonProperty("onChangeAction")]
public virtual GoogleAppsCardV1Action OnChangeAction { get; set; }
Property Value
Type | Description |
---|---|
GoogleAppsCardV1Action |
Selected
When true
, the switch is selected.
Declaration
[JsonProperty("selected")]
public virtual bool? Selected { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Value
The value entered by a user, returned as part of a form input event. For details about working with form inputs, see Receive form data.
Declaration
[JsonProperty("value")]
public virtual string Value { get; set; }
Property Value
Type | Description |
---|---|
string |