简体   繁体   English

Rails:更改will_paginate gem的next_page类

[英]Rails: Change next_page class of will_paginate gem

Is possible to change the class name 'next_page' of will paginate gem? 可以更改分页gem的类名“ next_page”吗? For example is easy to change .paginate class, but I don't know if is possibile with '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)

Once you are allowed to change the enclosing class name, changing nested class names is redundant and hence not provided. 一旦允许您更改封闭的类名,则更改嵌套的类名是多余的,因此不再提供。

Use CSS selector .pagination > .next_page to avoid any possible name clashes. 使用CSS选择器.pagination > .next_page避免任何可能的名称冲突。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM