Class: Layout::Actionbar::Cell
- Inherits:
-
Cell
- Object
- Cell
- Layout::Actionbar::Cell
- Defined in:
- app/cells/lato_view/layout/actionbar/cell.rb
Constant Summary collapse
- @@widget_align =
%(left right)
Instance Attribute Summary collapse
-
#title ⇒ Object
NB: widgets must be an array of hash ‘component’, align: ‘align’.
-
#widgets ⇒ Object
NB: widgets must be an array of hash ‘component’, align: ‘align’.
Instance Method Summary collapse
-
#initialize(title: '', widgets: []) ⇒ Cell
constructor
A new instance of Cell.
- #show ⇒ Object
Constructor Details
#initialize(title: '', widgets: []) ⇒ Cell
Returns a new instance of Cell.
9 10 11 12 13 14 15 |
# File 'app/cells/lato_view/layout/actionbar/cell.rb', line 9 def initialize(title: '', widgets: []) # save params @title = title @widgets = # check params check_params end |
Instance Attribute Details
#title ⇒ Object
NB: widgets must be an array of hash ‘component’, align: ‘align’
7 8 9 |
# File 'app/cells/lato_view/layout/actionbar/cell.rb', line 7 def title @title end |
#widgets ⇒ Object
NB: widgets must be an array of hash ‘component’, align: ‘align’
7 8 9 |
# File 'app/cells/lato_view/layout/actionbar/cell.rb', line 7 def @widgets end |
Instance Method Details
#show ⇒ Object
17 18 19 |
# File 'app/cells/lato_view/layout/actionbar/cell.rb', line 17 def show render 'show.html' end |