Class: Google::Apis::CloudsearchV1::TextButton

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TextButton

Returns a new instance of TextButton.



17204
17205
17206
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17204

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

Instance Attribute Details

#alt_textString

The alternative text used for accessibility Next field number: 7. Corresponds to the JSON property altText

Returns:

  • (String)


17175
17176
17177
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17175

def alt_text
  @alt_text
end

#background_colorString

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

Returns:

  • (String)


17181
17182
17183
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17181

def background_color
  @background_color
end

#disabledBoolean Also known as: disabled?

Corresponds to the JSON property disabled

Returns:

  • (Boolean)


17186
17187
17188
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17186

def disabled
  @disabled
end

#on_clickGoogle::Apis::CloudsearchV1::OnClick

Corresponds to the JSON property onClick



17192
17193
17194
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17192

def on_click
  @on_click
end

#styleString

Corresponds to the JSON property style

Returns:

  • (String)


17197
17198
17199
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17197

def style
  @style
end

#textString

Text color can be set via HTML markup. Corresponds to the JSON property text

Returns:

  • (String)


17202
17203
17204
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17202

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



17209
17210
17211
17212
17213
17214
17215
17216
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17209

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