阿西河

所有教程

公众号
🌙
阿西河前端的公众号

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      插件 jQuery.bootgrid 中文API文档

      插件 jQuery.bootgrid 中文API文档 https://github.com/rstaib/jquery-bootgrid

      jQuery Bootgrid Plugin Build StatusBower version NuGet version NPM version Gratipay

      Nice, sleek and intuitive. A grid control especially designed for bootstrap.

      Getting Started

      jQuery Bootgrid is a UI component written for jQuery and Bootstrap (Bootstrap isn’t necessarily required).

      Everything you need to start quickly is:

      1. Include jQuery, jQuery Bootgrid and Bootstrap libraries in your HTML code.
      2. Define your table layout and your data columns by adding the data-column-id attribute.
      3. Specify your data URL used to fill your data table and set ajax option to true directly on your table via data API.
      <!DOCTYPE html>
      <html>
          <head>
              <title>Demo</title>
              <meta charset="utf-8">
              <!-- Styles -->
              <link href="bootstrap.css" rel="stylesheet">
              <link href="jquery.bootgrid.css" rel="stylesheet">
          </head>
          <body>
              <table id="grid" data-toggle="bootgrid" data-ajax="true" data-url="/api/data/basic" class="table table-condensed table-hover table-striped">
                  <thead>
                      <tr>
                          <th data-column-id="id">ID</th>
                          <th data-column-id="name">Sender</th>
                      </tr>
                  </thead>
              </table>
              <!-- Scripts -->
              <script src="jquery.js"></script> 
              <script src="jquery.bootgrid.js"></script>
          </body>
      </html>
      

      For more information check the documentation.

      Examples

      Examples you find here.

      Reporting an Issue

      Instructions will follow soon!

      Asking questions

      I’m always happy to help answer your questions. The best way to get quick answers is to go to stackoverflow.com and tag your questions always with jquery-bootgrid.

      Contributing

      Instructions will follow soon!

      License

      Copyright (c) 2014-2015 Rafael J. Staib Licensed under the MIT license.

      目录
      目录