Module: Plutonium::Definition::IndexViews
- Extended by:
- ActiveSupport::Concern
- Included in:
- Base
- Defined in:
- lib/plutonium/definition/index_views.rb
Overview
DSL for declaring which index views a resource supports and how they’re configured.
Constant Summary collapse
- KNOWN_VIEWS =
%i[table grid].freeze
- GRID_SLOTS =
%i[image header subheader body meta footer].freeze
- GRID_LAYOUTS =
%i[compact media].freeze
Instance Method Summary collapse
- #default_index_view ⇒ Object
- #defined_grid_columns ⇒ Object
- #defined_grid_fields ⇒ Object
- #defined_grid_layout ⇒ Object
- #defined_index_views ⇒ Object
Instance Method Details
#default_index_view ⇒ Object
89 |
# File 'lib/plutonium/definition/index_views.rb', line 89 def default_index_view = self.class.default_index_view |
#defined_grid_columns ⇒ Object
92 |
# File 'lib/plutonium/definition/index_views.rb', line 92 def defined_grid_columns = self.class.defined_grid_columns |
#defined_grid_fields ⇒ Object
90 |
# File 'lib/plutonium/definition/index_views.rb', line 90 def defined_grid_fields = self.class.defined_grid_fields |
#defined_grid_layout ⇒ Object
91 |
# File 'lib/plutonium/definition/index_views.rb', line 91 def defined_grid_layout = self.class.defined_grid_layout |
#defined_index_views ⇒ Object
88 |
# File 'lib/plutonium/definition/index_views.rb', line 88 def defined_index_views = self.class.defined_index_views |