Class: UiBibz::Ui::Ux::Tables::Paginable
- Includes:
- WillPaginate::ActionView
- Defined in:
- lib/ui_bibz/ui/ux/tables/extensions/paginable.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(store, options, html_options = nil) ⇒ Paginable
constructor
A new instance of Paginable.
- #paginable? ⇒ Boolean
-
#render ⇒ Object
Render html tag.
Methods inherited from Base
#generate_id, #i18n_set?, #inject_url
Constructor Details
#initialize(store, options, html_options = nil) ⇒ Paginable
7 8 9 10 11 |
# File 'lib/ui_bibz/ui/ux/tables/extensions/paginable.rb', line 7 def initialize(store, , = nil) @store = store = = end |
Instance Method Details
#paginable? ⇒ Boolean
21 22 23 |
# File 'lib/ui_bibz/ui/ux/tables/extensions/paginable.rb', line 21 def paginable? [:paginable].nil? ? true : [:paginable] end |
#render ⇒ Object
Render html tag
14 15 16 17 18 19 |
# File 'lib/ui_bibz/ui/ux/tables/extensions/paginable.rb', line 14 def render content_tag :div, do concat UiBibz::Ui::Ux::Tables::TablePagination.new(store: @store, wrap_form: [:wrap_form]).render concat UiBibz::Ui::Ux::Tables::TablePaginationPerPage.new(store: @store, wrap_form: [:wrap_form]).render end end |