简体   繁体   English

rails will_paginate与JQuery UI选项卡

[英]rails will_paginate with JQuery UI Tabs

I would like to know if it is possible to add pagination with will_paginate for each of the tabs in a JQuery UI Tabs. 我想知道是否可以为JQuery UI选项卡中的每个选项卡添加will_paginate分页。

For exemple, I have two tabs, one with ten element and one with thirty. 例如,我有两个选项卡,一个带有十个元素,一个带有三十个元素。 Is it possible to add pagination for each ten elements in order to have the first tab without pagination and the second with three pages? 是否可以为每个十个元素添加分页,以使第一个选项卡没有分页,第二个选项卡有三页?

Thank you 谢谢

Yes that is possible. 是的,那是可能的。 All will_paginate do is generate the correct URLs for each set of resources. will_paginate所做的全部工作就是为每组资源生成正确的URL。

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

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