Class: Google::Apis::CloudsearchV1::AppsDynamiteStorageGrid

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

Overview

Represents a Grid widget that displays items in a configurable grid layout.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AppsDynamiteStorageGrid

Returns a new instance of AppsDynamiteStorageGrid.



3165
3166
3167
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3165

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

Instance Attribute Details

#border_styleGoogle::Apis::CloudsearchV1::AppsDynamiteStorageBorderStyle

Represents the complete border style applied to widgets. Corresponds to the JSON property borderStyle



3140
3141
3142
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3140

def border_style
  @border_style
end

#column_countFixnum

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

Returns:

  • (Fixnum)


3147
3148
3149
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3147

def column_count
  @column_count
end

#itemsArray<Google::Apis::CloudsearchV1::AppsDynamiteStorageGridGridItem>

The items to display in the grid. Corresponds to the JSON property items



3152
3153
3154
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3152

def items
  @items
end

#on_clickGoogle::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



3158
3159
3160
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3158

def on_click
  @on_click
end

#titleString

The text that displays in the grid header. Corresponds to the JSON property title

Returns:

  • (String)


3163
3164
3165
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3163

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3170
3171
3172
3173
3174
3175
3176
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3170

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