Class: Google::Apis::CloudsearchV1::AppsDynamiteStorageGrid
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::AppsDynamiteStorageGrid
- 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::AppsDynamiteStorageBorderStyle
The style options for the border of a card or widget, including the border type and color.
-
#column_count ⇒ Fixnum
The number of columns to display in the grid.
-
#items ⇒ Array<Google::Apis::CloudsearchV1::AppsDynamiteStorageGridGridItem>
The items to display in the grid.
-
#on_click ⇒ Google::Apis::CloudsearchV1::AppsDynamiteStorageOnClick
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) ⇒ AppsDynamiteStorageGrid
constructor
A new instance of AppsDynamiteStorageGrid.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AppsDynamiteStorageGrid
Returns a new instance of AppsDynamiteStorageGrid.
3421 3422 3423 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3421 def initialize(**args) update!(**args) end |
Instance Attribute Details
#border_style ⇒ Google::Apis::CloudsearchV1::AppsDynamiteStorageBorderStyle
The style options for the border of a card or widget, including the border
type and color.
Corresponds to the JSON property borderStyle
3396 3397 3398 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3396 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
3403 3404 3405 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3403 def column_count @column_count end |
#items ⇒ Array<Google::Apis::CloudsearchV1::AppsDynamiteStorageGridGridItem>
The items to display in the grid.
Corresponds to the JSON property items
3408 3409 3410 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3408 def items @items end |
#on_click ⇒ Google::Apis::CloudsearchV1::AppsDynamiteStorageOnClick
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
3414 3415 3416 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3414 def on_click @on_click end |
#title ⇒ String
The text that displays in the grid header.
Corresponds to the JSON property title
3419 3420 3421 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3419 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3426 3427 3428 3429 3430 3431 3432 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3426 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 |