Sha256: 0584e8a0b5090d52835055566f316a35c932098dfd6ebfb7bf0e595fcb39cf37
Contents?: true
Size: 817 Bytes
Versions: 24
Compression:
Stored size: 817 Bytes
Contents
# frozen_string_literal: true module UiBibz::Ui::Ux::Tables class Paginable < UiBibz::Ui::Base include WillPaginate::ActionView def initialize(store, options, html_options = nil) @store = store @options = options @html_options = html_options end # Render html tag 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 def paginable? @options[:paginable].nil? ? true : @options[:paginable] end private def store @store ||= Store.new @search_field.options[:store] end end end
Version data entries
24 entries across 24 versions & 1 rubygems