【发布时间】:2017-11-11 07:42:34
【问题描述】:
是否可以更改将分页 gem 的类名“next_page”?例如很容易更改 .paginate 类,但我不知道是否可以使用 'next_page'
:class - CSS class name for the generated DIV (default: "pagination")
:previous_label - default: "« Previous"
:next_label - default: "Next »"
:page_links - when false, only previous/next links are rendered (default: true)
:inner_window - how many links are shown around the current page (default: 4)
:outer_window - how many links are around the first and the last page (default: 1)
:link_separator - string separator for page HTML elements (default: single space)
:param_name - parameter name for page number in URLs (default: :page)
:params - additional parameters when generating pagination links (eg. :controller => "foo", :action => nil)
:renderer - class name, class or instance of a link renderer (default in Rails: WillPaginate::ActionView::LinkRenderer)
:container - toggles rendering of the DIV container for pagination links, set to false only when you are rendering your own pagination markup (default: true)
【问题讨论】:
-
为什么要改类名?
标签: css ruby-on-rails ruby rubygems will-paginate