Class: Ui::Pagination::Window

Inherits:
Component
  • Object
show all
Defined in:
lib/ui/pagination/window.rb

Constant Summary

Constants inherited from Component

Component::VIEWPATH

Instance Method Summary collapse

Methods inherited from Component

#capture, #icon, #render_group

Instance Method Details

#showObject



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/ui/pagination/window.rb', line 7

def show
  (
    :ul,
    render_group([
      previous_window,
      page_links.html_safe,
      next_window
    ]),
    class: 'ui-pagination__window',
    data: {
      position: position,
      "pagination-target": "windows"
    }
  )
end