Bootstrap Table: A Clean and Flat Table

Add-ons
2026-07-26 02:43 4 次浏览 • 0 次下载 100.7KB
Bootstrap Table: A Clean and Flat Table

Features

  • Developed with Bootstrap 3 (also supports Bootstrap 2)

  • Responsive interface

  • Fixed table header

  • Fully configurable

  • Supports data attributes

  • Show/Hide Columns

  • Show/hide table headers

  • Retrieve JSON data using AJAX

  • Easy sorting by clicking table headers

  • Supports custom column visibility

  • Supports single/multiple selection

  • Powerful pagination

  • Supports card layout

  • Supports multiple languages

Usage

1. Include the Bootstrap library (if your project does not already use it) and bootstrap-table.css in the head section of your HTML page.

1
2
<link rel="stylesheet" href="bootstrap.min.css">
<link rel="stylesheet" href="bootstrap-table.css">

2. Include the jQuery library, Bootstrap library (if your project does not already use it), and bootstrap-table.js in the head section or before the closing body tag (recommended).

1
2
3
<script src="jquery.min.js"></script>
<script src="bootstrap.min.js"></script>
<script src="bootstrap-table.js"></script>

3. Specify the data source. There are two ways to do this:

1) Using data attributes

Set data-toggle="table" on a regular table to enable Bootstrap Table without writing any JavaScript.

1
2
3
4
5
<table data-toggle="table" data-url="data.json">
<thead>
...
</thead>
</table>

2) Setting the data source using JavaScript

Use JavaScript to enable a table with an id attribute.

1
2
3
$('#table').bootstrapTable({
url: 'data.json'
});

For parameter details, refer to the official documentation.

星河码客

发现和分享优质开源项目,传承互联网精神,为开发者服务。

关于本站

联系我们

微信/广告合作:ITcloub (备注星河码客)

免责声明:本站资源版权归原作者所有,仅供学习与交流。如有侵权,请通过「关于我们 - 侵权投诉」联系删除。

Powered by Nuxt · Deployed on Cloudflare