2017-11-11 7 views
0

페이지 이름을 지정하는 'next_page'클래스를 변경할 수 있습니까? 예를 들어 .paginate 클래스를 변경하기 쉬운,하지만 난 당신이 클래스 이름을 둘러싸는 중첩 된 클래스 이름을 변경 변경할 수 있습니다되면 'next_page'레일 : 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을 사용하십시오.