Class: Matestack::Ui::Bootstrap::Components::Pagination
- Inherits:
-
Component
- Object
- Component
- Matestack::Ui::Bootstrap::Components::Pagination
- Defined in:
- app/concepts/matestack/ui/bootstrap/components/pagination.rb
Instance Method Summary collapse
Instance Method Details
#response ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'app/concepts/matestack/ui/bootstrap/components/pagination.rb', line 6 def response nav pagination_attributes do ul class: ul_classes do if items.present? items.each do |item| li class: "page-item #{ 'active' if item[:active] }" do if item[:type] == :link link item.merge({ class: 'page-link' }) else transition item.merge({ class: 'page-link' }) end end end end yield_components end end end |