Class AppsDynamiteSharedCard
A card is a UI element that can contain UI widgets such as text and images. For more information, see Cards .
For example, the following JSON creates a card that has a header with the name, position, icons, and link for a
contact, followed by a section with contact information like email and phone number. { "header": { "title":
"Heba Salam", "subtitle": "Software Engineer", "imageStyle": "ImageStyle.AVATAR", "imageUrl":
"https://example.com/heba_salam.png", "imageAltText": "Avatar for Heba Salam" }, "sections" : [ { "header":
"Contact Info", "widgets": [ { "decorated_text": { "icon": { "knownIcon": "EMAIL" }, "content":
"heba.salam@example.com" } }, { "decoratedText": { "icon": { "knownIcon": "PERSON" }, "content": "Online" } }, {
"decoratedText": { "icon": { "knownIcon": "PHONE" }, "content": "+1 (555) 555-1234" } }, { "buttons": [ {
"textButton": { "text": "Share", }, "onClick": { "openLink": { "url": "https://example.com/share" } } }, {
"textButton": { "text": "Edit", }, "onClick": { "action": { "function": "goToView", "parameters": [ { "key":
"viewType", "value": "EDIT" } ], "loadIndicator": "LoadIndicator.SPINNER" } } } ] } ], "collapsible": true,
"uncollapsibleWidgetsCount": 3 } ], "cardActions": [ { "actionLabel": "Send Feedback", "onClick": { "openLink":
{ "url": "https://example.com/feedback" } } } ], "name": "contact-card-K3wB6arF2H9L" }
Inheritance
Implements
Inherited Members
Namespace: Google.Apis.CloudSearch.v1.Data
Assembly: Google.Apis.CloudSearch.v1.dll
Syntax
public class AppsDynamiteSharedCard : IDirectResponseSchema
Properties
CardActions
The actions of this card. They are added to a card's generated toolbar menu. For example, the following JSON
constructs a card action menu with Settings and Send Feedback options: "card_actions": [ {
"actionLabel": "Setting", "onClick": { "action": { "functionName": "goToView", "parameters": [ { "key":
"viewType", "value": "SETTING" } ], "loadIndicator": "LoadIndicator.SPINNER" } } }, { "actionLabel": "Send
Feedback", "onClick": { "openLink": { "url": "https://example.com/feedback" } } } ]
Declaration
[JsonProperty("cardActions")]
public virtual IList<AppsDynamiteSharedCardCardAction> CardActions { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IList<AppsDynamiteSharedCardCardAction> |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Header
The header of the card. A header usually contains a title and an image.
Declaration
[JsonProperty("header")]
public virtual AppsDynamiteSharedCardCardHeader Header { get; set; }
Property Value
| Type | Description |
|---|---|
| AppsDynamiteSharedCardCardHeader |
Name
Name of the card, which is used as a identifier for the card in card navigation.
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Sections
Sections are separated by a line divider.
Declaration
[JsonProperty("sections")]
public virtual IList<AppsDynamiteSharedCardSection> Sections { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IList<AppsDynamiteSharedCardSection> |