Class: Ui::Pagination::PageLink

Inherits:
Component
  • Object
show all
Defined in:
lib/ui/pagination/page_link.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



8
9
10
11
12
13
14
15
# File 'lib/ui/pagination/page_link.rb', line 8

def show
  cell(
    Ui::Buttons::Secondary,
    position,
    path: path,
    style: style
  )
end

#styleObject



17
18
19
20
21
# File 'lib/ui/pagination/page_link.rb', line 17

def style
  current ?
    'ui-pagination__page--current' :
    'ui-pagination__page'
end