微小的可编辑jQuery Bootstrap 电子表格:editableTableWidget

jopen 11年前

微小的可编辑jQuery Bootstrap 电子表格。

这个 微小(3KB, < 120 lines) jQuery 插件 能够将任何表格转成一个可编辑的电子表格。以下是它的关键特性:

  • No magic - works on a normal HTML table (so you can plug it in into any web table, and apply any JS function to calculate values)
  • Supports validation and change events (so you can warn about invalid input or prevent invalid changes)
  • Uses standard DOM focus for selection (so does not interrupt scrolling or tabbing outside the table)
  • Input automatically copies underlying table cell styling
  • Native copy/paste support
  • Does not force any styling (so you can style it any way you want, using normal CSS)
  • Works well with Bootstrap
  • Depends only on jQuery
  • Tested in Chrome 32, Firefox 26, IE 10, Safari 7, Android Chrome and iOS 7 Safari

用法

$('#table').editableTableWidget();

项目主页:http://www.open-open.com/lib/view/home/1392037630395