当前位置

网站首页> 程序设计 > 开源项目 > 编程语言 > 浏览文章

AngularJS 表格指令 ngTable

作者:小梦 来源: 网络 时间: 2024-05-08 阅读:

#JetBrains 六折贺新春!IntelliJ IDEA,PyCharm,WebStorm,PhpStorm 优惠!

ngTable 是 AngularJS 表格指令,支持排序,过滤和分页,在编译步骤中自动生成带有标题和过滤器的标题行。

在 IE 9 中需要 jQuery,添加以下代码:

<!--[if lt IE 9]>  <script src="http://code.jquery.com/jquery-1.10.2.min.js"></script><![endif]-->

示例(从简单到复杂):

  • Pagination

  • Sorting

  • Filtering

  • Cell template

  • Row template

  • Params in url

  • Ajax

  • Table with hidden pagination

  • Custom template(pagination)

  • Custom filters

  • Table with checkboxes

  • Table with grouping

  • Table with grouping with callback

  • Table with external control of data

  • Export to CSV