Class: Avo::Resources::Items::Row
- Inherits:
-
Object
- Object
- Avo::Resources::Items::Row
- Includes:
- Concerns::HasItemType, Concerns::HasItems, Concerns::Hydration, Concerns::IsResourceItem, Concerns::VisibleItems
- Defined in:
- lib/avo/resources/items/row.rb
Defined Under Namespace
Classes: Builder
Instance Attribute Summary collapse
-
#items_holder ⇒ Object
Returns the value of attribute items_holder.
-
#view ⇒ Object
readonly
Returns the value of attribute view.
Attributes included from Concerns::IsResourceItem
Instance Method Summary collapse
- #has_items? ⇒ Boolean
-
#initialize(view: nil) ⇒ Row
constructor
A new instance of Row.
Methods included from Concerns::Hydration
Methods included from Concerns::VisibleItems
Methods included from Concerns::HasItemType
#is_field?, #is_heading?, #is_main_panel?, #is_panel?, #is_row?, #is_sidebar?, #is_tab?, #is_tab_group?, #is_tool?
Methods included from Concerns::HasItems
#fields, #get_field, #get_field_definitions, #get_fields, #get_items, #get_preview_fields, #invalid_fields, #is_empty?, #items, #only_fields, #tab_groups, #visible_items
Methods included from Concerns::IsResourceItem
Constructor Details
Instance Attribute Details
#items_holder ⇒ Object
Returns the value of attribute items_holder.
11 12 13 |
# File 'lib/avo/resources/items/row.rb', line 11 def items_holder @items_holder end |
#view ⇒ Object (readonly)
Returns the value of attribute view.
10 11 12 |
# File 'lib/avo/resources/items/row.rb', line 10 def view @view end |
Instance Method Details
#has_items? ⇒ Boolean
20 21 22 |
# File 'lib/avo/resources/items/row.rb', line 20 def has_items? @items.present? end |