有没有像< ul>的DataTables这样的jQuery插件? [英] Is there a jQuery plugin like DataTables for a <ul>?

查看:99
本文介绍了有没有像< ul>的DataTables这样的jQuery插件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何jQuery插件应用分页,允许用户选择页面大小,并管理在结果中显示用户的当前位置(例如'显示结果:1至230')?我想在初始页面加载时将所有列表项加载到'ul'中,并应用分页后缀。


$ b

DataTables 似乎可以完成所有这些(或更多),但它不适用于'ul'。



这是我想要完成的一个线框截图:



有任何建议吗? >经过进一步的研究,我还没有找到与< ul> s一起使用的DataTables的等价物。

因为网站是内部网站,DataTables非常强大,所以我使用了DataTables。该页面呈现单列表格,并调整样式以隐藏表格页眉和页脚。最后,它看起来完全像上面的线框。令人遗憾的是,标记必须被丑陋的< table> 标签污染。


Is there any jQuery plugin that applies paging, allows users to select the page size, and manages displaying user's current position in the results (e.g. 'Showing results: 1-5 of 230')? I want to load all the list items into the 'ul' on initial page load, and apply the paging afterword.

DataTables appears to do all of this (and more), but it doesn't work with a 'ul'.

Here is a wireframe screenshot for what I am trying to accomplish:

Any suggestions?

解决方案

After further research I have not found an equivalent to DataTables that works with <ul>s.

Because the website is internal website and DataTables is so robust, I went with DataTables. The page renders a single-column table, and the styling is tweaked to hide the table header and footer. In the end, it looked exactly like the wireframe above. It's just a shame that the markup has to be polluted with the ugly <table> tags.

这篇关于有没有像&lt; ul&gt;的DataTables这样的jQuery插件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆