Class: Google::Apis::CloudsearchV1::SelectionControl
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::SelectionControl
- 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
Instance Attribute Summary collapse
-
#items ⇒ Array<Google::Apis::CloudsearchV1::SelectionItem>
For radio button, at most one of the items will be selected.
-
#label ⇒ String
Label used to be displayed ahead of the selection control.
-
#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.
-
#type ⇒ String
Corresponds to the JSON property
type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SelectionControl
constructor
A new instance of SelectionControl.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SelectionControl
Returns a new instance of SelectionControl.
17849 17850 17851 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17849 def initialize(**args) update!(**args) end |
Instance Attribute Details
#items ⇒ Array<Google::Apis::CloudsearchV1::SelectionItem>
For radio button, at most one of the items will be selected.
Corresponds to the JSON property items
17826 17827 17828 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17826 def items @items end |
#label ⇒ String
Label used to be displayed ahead of the selection control. It is optional.
Corresponds to the JSON property label
17831 17832 17833 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17831 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
17836 17837 17838 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17836 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
17842 17843 17844 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17842 def on_change @on_change end |
#type ⇒ String
Corresponds to the JSON property type
17847 17848 17849 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17847 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
17854 17855 17856 17857 17858 17859 17860 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17854 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) @type = args[:type] if args.key?(:type) end |