Class: Google::Apis::CloudsearchV1::AppsDynamiteSharedSelectionInput

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb

Overview

A widget that creates a UI item (for example, a drop-down list) with options for users to select.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AppsDynamiteSharedSelectionInput

Returns a new instance of AppsDynamiteSharedSelectionInput.



3117
3118
3119
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3117

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#itemsArray<Google::Apis::CloudsearchV1::AppsDynamiteSharedSelectionInputSelectionItem>

Corresponds to the JSON property items



3094
3095
3096
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3094

def items
  @items
end

#labelString

The label displayed ahead of the switch control. Corresponds to the JSON property label

Returns:

  • (String)


3099
3100
3101
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3099

def label
  @label
end

#nameString

The name of the text input which is used in formInput. Corresponds to the JSON property name

Returns:

  • (String)


3104
3105
3106
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3104

def name
  @name
end

#on_change_actionGoogle::Apis::CloudsearchV1::AppsDynamiteSharedAction

An action that describes the behavior when the form is submitted. For example, an Apps Script can be invoked to handle the form. Corresponds to the JSON property onChangeAction



3110
3111
3112
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3110

def on_change_action
  @on_change_action
end

#typeString

Corresponds to the JSON property type

Returns:

  • (String)


3115
3116
3117
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3115

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3122
3123
3124
3125
3126
3127
3128
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3122

def update!(**args)
  @items = args[:items] if args.key?(:items)
  @label = args[:label] if args.key?(:label)
  @name = args[:name] if args.key?(:name)
  @on_change_action = args[:on_change_action] if args.key?(:on_change_action)
  @type = args[:type] if args.key?(:type)
end