2017-11-11 12 views
0

ぺージェネイトgemのクラス名 'next_page'を変更することはできますか?たとえば.paginateクラスを変更するのは簡単ですが、私はあなたがは、クラス名を囲む、ネストされたクラス名を変更する変更することが許可されていたら「にnext_page」Rails:will_paginate gemの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

とpossibileであれば知らない冗長であり、従って提供されない。

CSSセレクタ.pagination > .next_pageを使用すると、名前の衝突を避けることができます。

関連する問題