class UiBibz::Ui::Ux::Tables::Paginable
Public Class Methods
new(store, options, html_options = nil)
click to toggle source
# File lib/ui_bibz/ui/ux/tables/extensions/paginable.rb, line 7 def initialize(store, options, html_options = nil) @store = store @options = options @html_options = html_options end
Public Instance Methods
paginable?()
click to toggle source
# File lib/ui_bibz/ui/ux/tables/extensions/paginable.rb, line 21 def paginable? @options[:paginable].nil? ? true : @options[:paginable] end
render()
click to toggle source
Render html tag
# File lib/ui_bibz/ui/ux/tables/extensions/paginable.rb, line 14 def render content_tag :div, @html_options do concat UiBibz::Ui::Ux::Tables::TablePagination.new(store: @store, wrap_form: @options[:wrap_form]).render concat UiBibz::Ui::Ux::Tables::TablePaginationPerPage.new(store: @store, wrap_form: @options[:wrap_form]).render end end
Private Instance Methods
store()
click to toggle source
# File lib/ui_bibz/ui/ux/tables/extensions/paginable.rb, line 27 def store @store ||= Store.new @search_field.options[:store] end