最佳的JavaScript datatable小部件/库 [英] Best-of-breed JavaScript datatable widget/library

查看:149
本文介绍了最佳的JavaScript datatable小部件/库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

过去,我使用了几个datatable小部件,其中包括 YUI2的和我好奇地知道那里是否有一个先知。我很高兴 jQuery网格,但我还没有看到任何东西,因为它被宣布。

I've used a couple datatable widgets in the past, including YUI2's, and I'm curious to know if there's a perceived frontrunner out there. I'm excited for jQuery Grid, but I haven't seen anything since it was announced.

我想在一个数据提供者中看到:

What I'd like to see in a datatable provider:


  • 可以使用任意对象的键值对的JSON数组; YUI2声明模式将这些对象映射到列的能力很好(即使其余的API有点冗长,笨重)。

  • Can consume JSON arrays of arbitrary objects' key-value pairs; YUI2's ability to declare a schema to map these objects to columns does well (even though rest of the API is a bit verbose, clunky).

提供一种能力通过文本字段过滤

Provides an ability to filter via text fields

支持客户端分页(使用服务器端分页进行交换的能力将是一个加分)。

Supports client-side pagination (an ability to swap out with server-side pagination would be a plus).

支持使用任意HTML(链接,图像等)自定义单元格的表示/格式的方法。

Supports a means to customize the presentation/format of cells with arbitrary HTML (links, images, etc.)

没有进一步的指导,我可能会查看 DataTables YUI3 DataTable 。建议?

With no further guidance, I'm likely to look into DataTables and YUI3 DataTable. Recommendations?

推荐答案

我没有调查过YUI3,但是从我听说它已经大大改善了。但你有没有想过自己滚动?我真的在挖掘KnockoutJS,他们有一个简单的DataGrid示例与分页。我确定它可以很容易地扩展。 http://knockoutjs.com/examples/grid.html

I haven't investigated the YUI3 yet but from what I hear it's vastly improved from 2. It might sound heretical but have you thought of rolling your own? I've really been digging KnockoutJS, and they have a simple example of a DataGrid with paging. I'm sure it could be extended pretty easily. http://knockoutjs.com/examples/grid.html

我也在生产环境中使用了jQuery DataTables。诚然,这是一个简单的用例,但似乎没有任何问题。

I've also used jQuery DataTables in a production environment. Admittedly, it was a simple use case but it didn't seem to present any problems.

这篇关于最佳的JavaScript datatable小部件/库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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