Class: Google::Apis::CloudsearchV1::Grid
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::Grid
- 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
-
#border_style ⇒ Google::Apis::CloudsearchV1::BorderStyle
Represents a complete border style that can be applied to widgets.
-
#items ⇒ Array<Google::Apis::CloudsearchV1::GridItem>
The items to display in the grid.
-
#num_columns ⇒ Fixnum
The number of columns to display in the grid.
-
#on_click ⇒ Google::Apis::CloudsearchV1::OnClick
This callback will be reused by each individual GridItem, but with the item's identifier and index in the items list added to the callback's parameters.
-
#title ⇒ String
The text to display in the grid header.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Grid
constructor
A new instance of Grid.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Grid
Returns a new instance of Grid.
10229 10230 10231 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10229 def initialize(**args) update!(**args) end |
Instance Attribute Details
#border_style ⇒ Google::Apis::CloudsearchV1::BorderStyle
Represents a complete border style that can be applied to widgets.
Corresponds to the JSON property borderStyle
10204 10205 10206 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10204 def border_style @border_style end |
#items ⇒ Array<Google::Apis::CloudsearchV1::GridItem>
The items to display in the grid.
Corresponds to the JSON property items
10209 10210 10211 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10209 def items @items end |
#num_columns ⇒ Fixnum
The number of columns to display in the grid. Note that a default value will
be used if this field is not specified, and that default value will be
different depending on where the grid is shown (dialog vs companion).
Corresponds to the JSON property numColumns
10216 10217 10218 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10216 def num_columns @num_columns end |
#on_click ⇒ Google::Apis::CloudsearchV1::OnClick
This callback will be reused by each individual GridItem, but with the item's
identifier and index in the items list added to the callback's parameters.
Corresponds to the JSON property onClick
10222 10223 10224 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10222 def on_click @on_click end |
#title ⇒ String
The text to display in the grid header.
Corresponds to the JSON property title
10227 10228 10229 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10227 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10234 10235 10236 10237 10238 10239 10240 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10234 def update!(**args) @border_style = args[:border_style] if args.key?(:border_style) @items = args[:items] if args.key?(:items) @num_columns = args[:num_columns] if args.key?(:num_columns) @on_click = args[:on_click] if args.key?(:on_click) @title = args[:title] if args.key?(:title) end |