Class: Jav::Row
- Inherits:
-
Object
- Object
- Jav::Row
- Includes:
- Concerns::IsResourceItem, Concerns::VisibleItems
- Defined in:
- lib/jav/row.rb
Instance Attribute Summary collapse
-
#items_holder ⇒ Object
Returns the value of attribute items_holder.
-
#view ⇒ Object
readonly
Returns the value of attribute view.
Instance Method Summary collapse
- #has_items? ⇒ Boolean
- #hydrate(view: nil, **args) ⇒ Object
-
#initialize(view: nil) ⇒ Row
constructor
A new instance of Row.
Methods included from Concerns::VisibleItems
#items, #visible, #visible?, #visible_items
Methods included from Concerns::IsResourceItem
#is_field?, #is_main_panel?, #is_panel?, #is_row?, #is_sidebar?, #is_tab?, #is_tab_group?, #is_tool?
Constructor Details
#initialize(view: nil) ⇒ Row
Returns a new instance of Row.
12 13 14 15 |
# File 'lib/jav/row.rb', line 12 def initialize(view: nil) @view = view @items_holder = Jav::ItemsHolder.new end |
Instance Attribute Details
#items_holder ⇒ Object
Returns the value of attribute items_holder.
8 9 10 |
# File 'lib/jav/row.rb', line 8 def items_holder @items_holder end |
#view ⇒ Object (readonly)
Returns the value of attribute view.
7 8 9 |
# File 'lib/jav/row.rb', line 7 def view @view end |
Instance Method Details
#has_items? ⇒ Boolean
23 24 25 |
# File 'lib/jav/row.rb', line 23 def has_items? @items.present? end |
#hydrate(view: nil, **args) ⇒ Object
17 18 19 20 21 |
# File 'lib/jav/row.rb', line 17 def hydrate(view: nil, **args) @view = view self end |