Show / Hide Table of Contents

Class AppsDynamiteSharedWidget

A widget is a UI element that presents texts, images, etc.

Inheritance
System.Object
AppsDynamiteSharedWidget
Implements
Google.Apis.Requests.IDirectResponseSchema
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.CloudSearch.v1.Data
Assembly: Google.Apis.CloudSearch.v1.dll
Syntax
public class AppsDynamiteSharedWidget : IDirectResponseSchema

Properties

ButtonList

A list of buttons. For example, the following JSON creates two buttons. The first is a filled text button and the second is an image button that opens a link: "buttonList": { "buttons": [ "button": { "text": "Edit", "Color": { "Red": 255 "Green": 255 "Blue": 255 } "disabled": true }, "button": { "icon": { "knownIcon": "INVITE" "altText": "check calendar" }, "onClick": { "openLink": { "url": "https://example.com/calendar" } } }, ] }

Declaration
[JsonProperty("buttonList")]
public virtual AppsDynamiteSharedButtonList ButtonList { get; set; }
Property Value
Type Description
AppsDynamiteSharedButtonList

Columns

Displays a single row of columns with widgets stacked vertically in each column. For example, the following JSON creates a 2 column widget each containing a single item. "columns": { "wrapStyle": "WRAP", "columnItems": [ { "horizontalSizeStyle": "FILL_AVAILABLE_SPACE", "horizontalAlignment": "CENTER", "verticalAlignment" : "CENTER", "widgets": [ { "textParagraph": { "text": "First column text paragraph", } } ] }, { "horizontalSizeStyle": "FILL_AVAILABLE_SPACE", "horizontalAlignment": "CENTER", "verticalAlignment" : "CENTER", "widgets": [ { "textParagraph": { "text": "Second column text paragraph", } } ] }, ] } }

Declaration
[JsonProperty("columns")]
public virtual AppsDynamiteSharedColumns Columns { get; set; }
Property Value
Type Description
AppsDynamiteSharedColumns

DateTimePicker

Displays a selection/input widget for date/time. For example, the following JSON creates a date/time picker for an appointment time: "date_time_picker": { "name": "appointment_time", "label": "Book your appointment at:", "type": "DateTimePickerType.DATE_AND_TIME", "valueMsEpoch": "796435200000" }

Declaration
[JsonProperty("dateTimePicker")]
public virtual AppsDynamiteSharedDateTimePicker DateTimePicker { get; set; }
Property Value
Type Description
AppsDynamiteSharedDateTimePicker

DecoratedText

Displays a decorated text item in this widget. For example, the following JSON creates a decorated text widget showing email address: "decoratedText": { "icon": { "knownIcon": "EMAIL" }, "topLabel": "Email Address", "content": "heba.salam@example.com", "bottomLabel": "This is a new Email address!", "switchWidget": { "name": "has_send_welcome_email_to_heba_salam", "selected": false, "controlType": "ControlType.CHECKBOX" } }

Declaration
[JsonProperty("decoratedText")]
public virtual AppsDynamiteSharedDecoratedText DecoratedText { get; set; }
Property Value
Type Description
AppsDynamiteSharedDecoratedText

Divider

Displays a divider. For example, the following JSON creates a divider: "divider": { }

Declaration
[JsonProperty("divider")]
public virtual AppsDynamiteSharedDivider Divider { get; set; }
Property Value
Type Description
AppsDynamiteSharedDivider

ETag

The ETag of the item.

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

Grid

Displays a grid with a collection of items. For example, the following JSON creates a 2 column grid with a single item: "grid": { "title": "A fine collection of items", "numColumns": 2, "borderStyle": { "type": "STROKE", "cornerRadius": 4.0 }, "items": [ "image": { "imageUri": "https://www.example.com/image.png", "cropStyle": { "type": "SQUARE" }, "borderStyle": { "type": "STROKE" } }, "title": "An item", "textAlignment": "CENTER" ], "onClick": { "openLink": { "url":"https://www.example.com" } } }

Declaration
[JsonProperty("grid")]
public virtual AppsDynamiteSharedGrid Grid { get; set; }
Property Value
Type Description
AppsDynamiteSharedGrid

HorizontalAlignment

The horizontal alignment of this widget.

Declaration
[JsonProperty("horizontalAlignment")]
public virtual string HorizontalAlignment { get; set; }
Property Value
Type Description
System.String

Image

Displays an image in this widget. For example, the following JSON creates an image with alternative text: "image": { "imageUrl": "https://example.com/heba_salam.png" "altText": "Avatar for Heba Salam" }

Declaration
[JsonProperty("image")]
public virtual AppsDynamiteSharedImage Image { get; set; }
Property Value
Type Description
AppsDynamiteSharedImage

SelectionInput

Displays a switch control in this widget. For example, the following JSON creates a dropdown selection for size: "switchControl": { "name": "size", "label": "Size" "type": "SelectionType.DROPDOWN", "items": [ { "text": "S", "value": "small", "selected": false }, { "text": "M", "value": "medium", "selected": true }, { "text": "L", "value": "large", "selected": false }, { "text": "XL", "value": "extra_large", "selected": false } ] }

Declaration
[JsonProperty("selectionInput")]
public virtual AppsDynamiteSharedSelectionInput SelectionInput { get; set; }
Property Value
Type Description
AppsDynamiteSharedSelectionInput

TextInput

Displays a text input in this widget. For example, the following JSON creates a text input for mail address: "textInput": { "name": "mailing_address", "label": "Mailing Address" } As another example, the following JSON creates a text input for programming language with static suggestions: "textInput": { "name": "preferred_programing_language", "label": "Preferred Language", "initialSuggestions": { "items": [ { "text": "C++" }, { "text": "Java" }, { "text": "JavaScript" }, { "text": "Python" } ] } }

Declaration
[JsonProperty("textInput")]
public virtual AppsDynamiteSharedTextInput TextInput { get; set; }
Property Value
Type Description
AppsDynamiteSharedTextInput

TextParagraph

Displays a text paragraph in this widget. For example, the following JSON creates a bolded text: "textParagraph": { "text": " *bold text*" }

Declaration
[JsonProperty("textParagraph")]
public virtual AppsDynamiteSharedTextParagraph TextParagraph { get; set; }
Property Value
Type Description
AppsDynamiteSharedTextParagraph

Implements

Google.Apis.Requests.IDirectResponseSchema
In This Article
Back to top