Class: Google::Apis::CloudsearchV1::AppsDynamiteSharedGrid
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::AppsDynamiteSharedGrid
- 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
Represents a Grid widget that displays items in a configurable grid layout.
Instance Attribute Summary collapse
-
#border_style ⇒ Google::Apis::CloudsearchV1::AppsDynamiteSharedBorderStyle
Represents the complete border style applied to widgets.
-
#column_count ⇒ Fixnum
The number of columns to display in the grid.
-
#items ⇒ Array<Google::Apis::CloudsearchV1::AppsDynamiteSharedGridGridItem>
The items to display in the grid.
-
#on_click ⇒ Google::Apis::CloudsearchV1::AppsDynamiteSharedOnClick
This callback is reused by each individual grid item, but with the item's identifier and index in the items list added to the callback's parameters.
-
#title ⇒ String
The text that displays in the grid header.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AppsDynamiteSharedGrid
constructor
A new instance of AppsDynamiteSharedGrid.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AppsDynamiteSharedGrid
Returns a new instance of AppsDynamiteSharedGrid.
2359 2360 2361 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2359 def initialize(**args) update!(**args) end |
Instance Attribute Details
#border_style ⇒ Google::Apis::CloudsearchV1::AppsDynamiteSharedBorderStyle
Represents the complete border style applied to widgets.
Corresponds to the JSON property borderStyle
2334 2335 2336 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2334 def border_style @border_style end |
#column_count ⇒ Fixnum
The number of columns to display in the grid. A default value is used if this
field isn't specified, and that default value is different depending on where
the grid is shown (dialog versus companion).
Corresponds to the JSON property columnCount
2341 2342 2343 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2341 def column_count @column_count end |
#items ⇒ Array<Google::Apis::CloudsearchV1::AppsDynamiteSharedGridGridItem>
The items to display in the grid.
Corresponds to the JSON property items
2346 2347 2348 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2346 def items @items end |
#on_click ⇒ Google::Apis::CloudsearchV1::AppsDynamiteSharedOnClick
This callback is reused by each individual grid item, but with the item's
identifier and index in the items list added to the callback's parameters.
Corresponds to the JSON property onClick
2352 2353 2354 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2352 def on_click @on_click end |
#title ⇒ String
The text that displays in the grid header.
Corresponds to the JSON property title
2357 2358 2359 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2357 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2364 2365 2366 2367 2368 2369 2370 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2364 def update!(**args) @border_style = args[:border_style] if args.key?(:border_style) @column_count = args[:column_count] if args.key?(:column_count) @items = args[:items] if args.key?(:items) @on_click = args[:on_click] if args.key?(:on_click) @title = args[:title] if args.key?(:title) end |