Class: Layout::Actionbar::Cell

Inherits:
Cell
  • Object
show all
Defined in:
app/cells/lato_view/layout/actionbar/cell.rb

Constant Summary collapse

@@widget_align =
%(left right)

Instance Attribute Summary collapse

Instance Method Summary collapse

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 = widgets
  # check params
  check_params
end

Instance Attribute Details

#titleObject

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

#widgetsObject

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
  @widgets
end

Instance Method Details

#showObject



17
18
19
# File 'app/cells/lato_view/layout/actionbar/cell.rb', line 17

def show
  render 'show.html'
end