是否可以更改paginate 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)
答案 0 :(得分:0)
一旦允许更改封闭类名,更改嵌套类名是多余的,因此不提供。
使用CSS选择器.pagination > .next_page
来避免任何可能的名称冲突。