Class: Google::Apis::CloudsearchV1::TextButton
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::TextButton
- 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
-
#alt_text ⇒ String
The alternative text used for accessibility Next field number: 7.
-
#background_color ⇒ String
Optional color of the button's background in RAISE mode.
-
#disabled ⇒ Boolean
(also: #disabled?)
Corresponds to the JSON property
disabled. -
#on_click ⇒ Google::Apis::CloudsearchV1::OnClick
Corresponds to the JSON property
onClick. -
#style ⇒ String
Corresponds to the JSON property
style. -
#text ⇒ String
Text color can be set via HTML markup.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TextButton
constructor
A new instance of TextButton.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TextButton
Returns a new instance of TextButton.
16518 16519 16520 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16518 def initialize(**args) update!(**args) end |
Instance Attribute Details
#alt_text ⇒ String
The alternative text used for accessibility Next field number: 7.
Corresponds to the JSON property altText
16489 16490 16491 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16489 def alt_text @alt_text end |
#background_color ⇒ String
Optional color of the button's background in RAISE mode. The default is the
secondary color from addon's manifest.
Corresponds to the JSON property backgroundColor
16495 16496 16497 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16495 def background_color @background_color end |
#disabled ⇒ Boolean Also known as: disabled?
Corresponds to the JSON property disabled
16500 16501 16502 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16500 def disabled @disabled end |
#on_click ⇒ Google::Apis::CloudsearchV1::OnClick
Corresponds to the JSON property onClick
16506 16507 16508 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16506 def on_click @on_click end |
#style ⇒ String
Corresponds to the JSON property style
16511 16512 16513 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16511 def style @style end |
#text ⇒ String
Text color can be set via HTML markup.
Corresponds to the JSON property text
16516 16517 16518 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16516 def text @text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
16523 16524 16525 16526 16527 16528 16529 16530 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16523 def update!(**args) @alt_text = args[:alt_text] if args.key?(:alt_text) @background_color = args[:background_color] if args.key?(:background_color) @disabled = args[:disabled] if args.key?(:disabled) @on_click = args[:on_click] if args.key?(:on_click) @style = args[:style] if args.key?(:style) @text = args[:text] if args.key?(:text) end |