开发者

Data table/grid widget with Backbone.js

开发者 https://www.devze.com 2023-04-04 04:02 出处:网络
Can any one suggest a data table/grid widget to use in a application backed by Backbone.js & jQuery?

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'开发者_如何学Pythonve 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+)


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.


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 backbone

really, though, any jquery table / grid plugin should work


Slickback is a javascript library that adapts Backbone collections to work with SlickGrid, a jQuery-backed datagrid. Extensions include support for paginating collections

Demo: http://teleological.github.com/slickback/


Check this. bbGrid. Just in work, right now.


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 :

App.Views.AModel.EditView = Grid.EditView.extend({
  tagName : "tr",
  className : "new_matter",
  template : JST["templates/matters/show"],

  initialize : function() {
    this.model.bind("sync", this.renderRow, this);
  }
  //...
})
0

精彩评论

暂无评论...
验证码 换一张
取 消