bootstrap-table
A jQuery-based plugin that turns plain HTML tables into feature-rich data tables for Bootstrap, adding sorting, pagination, row selection, AJAX/JSON loading, card and detail views, localization, and a large extension ecosystem—configurable largely through HTML data attributes.
MITPermissive — free to use in commercial and proprietary software, with attribution.View license →
Production readiness
4/5- Actively maintainedCommits in the last 6 months
- No known vulnerabilities2 known OSV advisories
- Clear, usable licenseMIT (permissive)
- Proven adoptionWidely used
- Has documentationDocumentation indexed
npm install bootstrap-tableOur analysis
Bootstrap Table is a jQuery plugin that enhances standard HTML tables with interactive data-grid features styled for Bootstrap, configurable via data attributes or a JavaScript API and extensible through dozens of community extensions.
When to use bootstrap-table
Good for server-rendered or jQuery/Bootstrap-based applications that need a quick, configurable data table with sorting, pagination, AJAX loading, and column controls without adopting a full SPA framework. Its data-attribute-driven setup is convenient for teams that want minimal JavaScript wiring.
When not to
A poor fit for modern React/Vue/Svelte component-based apps, where headless or framework-native grids (TanStack Table, AG Grid) integrate better with virtual DOM and state management. Also not ideal if you want to avoid a jQuery and Bootstrap dependency, or need advanced features like virtual scrolling at massive scale or cell editing comparable to spreadsheet grids.
Strengths
- Mature, widely adopted, and well-documented with extensive live examples
- Declarative configuration through HTML data attributes lowers the learning curve
- Large extension ecosystem and built-in localization
- Works across multiple Bootstrap versions and integrates cleanly with existing Bootstrap UIs
Trade-offs
- Depends on jQuery and Bootstrap, which are increasingly avoided in modern stacks
- Imperative DOM-mutation model doesn't compose naturally with React/Vue component state
- Largely maintained by a single primary author, a bus-factor concern
- Less suited to very large datasets needing virtualization compared to AG Grid or Tabulator
Maturity
A long-standing, popular project with ~12k stars, a published changelog, npm/yarn/CDN distribution, and an active issue tracker. It is production-proven in the Bootstrap/jQuery ecosystem, though development pace and relevance track the declining popularity of jQuery-era tooling.
Bootstrap Table
An extended Bootstrap table with radio, checkbox, sort, pagination, extensions and other added features.
To get started, check out:
LICENSE
NOTE: Bootstrap Table is licensed under The MIT License. Completely free, you can arbitrarily use and modify this plugin. If this plugin is useful to you, you can Star this repo, your support is my biggest motive force, thanks.
Features
Created for Twitter Bootstrap (All versions supported)
Responsive web design
Scrollable Table with fixed headers
Fully configurable
Via data attributes
Show/Hide columns
Show/Hide headers
Show/Hide footers
Get data in JSON format using AJAX
Simple column sorting with a click
Format column
Single or multiple row selection
Powerful pagination
Card view
Detail view
Localization
Extensions
How to get it
Manual download
Use Releases page or the source.
Yarn
yarn add bootstrap-table
Npm
npm install bootstrap-table
CDN
You can source bootstrap-table directly from a CDN like CDNJS or bootcss or jsdelivr.
Contributing
For feature requests, bug reports or submitting pull requests, please ensure you first read CONTRIBUTING.md.
Reporting Issues
As stated above, please read CONTRIBUTING.md, especially Bug Reports
And as stated there, please provide an Online Example when creating issues!
It's really saves much time.
You can also use our examples template via Load Examples button:
Your feedback is very appreciated!
Acknowledgements
Thanks to everyone who have given feedback and submitted pull requests. A list of all the contributors can be found here. This project exists thanks to all the people who contribute. [Contribute].
Release History
Look at the Change Log
Local develop
To develop bootstrap-table locally please run:
mkdir bootstrap-table-dev
cd bootstrap-table-dev
git clone https://github.com/wenzhixin/bootstrap-table
git clone https://github.com/wenzhixin/bootstrap-table-examples
yarn add http-server
npx http-server
And then open: http://localhost:8081/bootstrap-table-examples
Local build
Be sure to use a current version of yarn/npm. To build bootstrap-table locally please run:
Yarn
yarn install
yarn build
Npm
npm install
npm run build
Result will appear in dist directory.
PayPal Sponsors
OpenCollective Sponsors
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]
OpenCollective Backers
Support this project by becoming a backer. Your image will show up here with a link to your website. [Become a backer]
