Class: Elements::Pagination::Cell

Inherits:
Cell
  • Object
show all
Defined in:
app/cells/lato_core/elements/pagination/cell.rb

Constant Summary collapse

@@requested_args =
[:total]
@@default_args =
{
  current: 1,
  max_visible: 5,
  url: '#',
  param: 'page',
  remote: false,
  extra_params: {}
}

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ Cell

Returns a new instance of Cell.



16
17
18
19
20
21
22
23
24
# File 'app/cells/lato_core/elements/pagination/cell.rb', line 16

def initialize(args = {})
  @args = validate_args(
    args: args,
    requested_args: @@requested_args,
    default_args: @@default_args
  )

  set_conditions
end

Instance Method Details

#showObject



26
27
28
# File 'app/cells/lato_core/elements/pagination/cell.rb', line 26

def show
  render 'show.html'
end