使用 Backbone.js 的数据表/网格小部件
任何人都可以建议在 Backbone.js & 支持的应用程序中使用数据表/网格小部件吗? jQuery?
目前我正在使用 DataTables.net 小部件,并且我已经为 Backbone.js 编写了自定义绑定类型的函数。但与 Backbone 及其 API 的绑定对我来说似乎很复杂。有没有简单且干净的小部件?聪明的API(我喜欢YUI网格,但单独使用网格JS大小约为360KB+)
Can any one suggest a data table/grid widget to use in a application backed by Backbone.js & jQuery?
Currently I m using DataTables.net widget, and I've written a custom binding sort of functions for Backbone.js. But binding with Backbone and its API are seems complex to me. Is there any widget which is simple and with clean & clever API (I liked YUI grid, but to use the grid alone JS size is around 360KB+)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
我刚刚发布了 Backgrid.js。
Backgrid.js 是一组功能强大的小部件,用于在 4.7K 版本的 Backbone.js 之上构建数据网格。它生成语义 HTML,因此具有极高的样式和可定制性。该核心适用于移动设备,并且还带有许多扩展功能,可实现许多额外功能。
I just released Backgrid.js.
Backgrid.js is a powerful set of widgets for building data grids on top of Backbone.js in 4.7K. It generates semantic HTML so its extremely stylable and customizable. The core works on mobile and comes with lots of extensions for many extra features too.
我是 http://tablesorter.com 的粉丝
,它是一个 jquery 插件,可以将任何标准 html
< table>
元素放入可排序、可分页的网格中。由于它只是一个 jquery 插件,因此与骨干网一起使用时没有冲突或任何特殊考虑,但是任何 jquery 表/网格插件都应该可以工作
I'm a fan of http://tablesorter.com
it's a jquery plugin that turns any standard html
<table>
element into a sortable, pageable grid. and since it's just a jquery plugin, there's no conflicts or any special considerations for using it with backbonereally, though, any jquery table / grid plugin should work
演示:http://teleological.github.com/slickback/
Demo: http://teleological.github.com/slickback/
检查一下。 bbGrid。刚刚在工作,现在。
Check this. bbGrid. Just in work, right now.
您可能想尝试 https://github.com/charly/backbone.grid (披露:我创造了它)。请注意,我仍然使用它来满足我自己的需求,但我希望它能够足够成熟以进行公开发布。欢迎贡献/评论...
示例代码:
You may want to try https://github.com/charly/backbone.grid (Disclosure: I created it). Beware I still use it to fit my own needs but I'm hoping it'll get mature enough for a public release. Contribution/remarks are welcome...
Example code :