Class: Google::Apis::CloudsearchV1::Menu
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::Menu
- 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
This is deprecated and please use SelectionControl by setting type to DROPDOWN.
Instance Attribute Summary collapse
-
#items ⇒ Array<Google::Apis::CloudsearchV1::MenuItem>
Corresponds to the JSON property
items. -
#label ⇒ String
Label used to be displayed ahead of the menu.
-
#name ⇒ String
The name of the text field which is will be used in FormInput.
-
#on_change ⇒ Google::Apis::CloudsearchV1::FormAction
If specified, form is submitted when selection changed.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Menu
constructor
A new instance of Menu.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Menu
Returns a new instance of Menu.
13220 13221 13222 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13220 def initialize(**args) update!(**args) end |
Instance Attribute Details
#items ⇒ Array<Google::Apis::CloudsearchV1::MenuItem>
Corresponds to the JSON property items
13202 13203 13204 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13202 def items @items end |
#label ⇒ String
Label used to be displayed ahead of the menu. It is optional.
Corresponds to the JSON property label
13207 13208 13209 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13207 def label @label end |
#name ⇒ String
The name of the text field which is will be used in FormInput.
Corresponds to the JSON property name
13212 13213 13214 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13212 def name @name end |
#on_change ⇒ Google::Apis::CloudsearchV1::FormAction
If specified, form is submitted when selection changed. If not specified,
developer will need to specify a separate button.
Corresponds to the JSON property onChange
13218 13219 13220 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13218 def on_change @on_change end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
13225 13226 13227 13228 13229 13230 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13225 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 = args[:on_change] if args.key?(:on_change) end |