Set of extensions for Bootstrap.
There are three options available:
- Install with Bower:
bower install jacbmelo/bootstrap-ext --save
. - Download the latest release.
- Clone the repo:
git clone https://github.com/jacbmelo/bootstrap-ext.git
.
To start add to your page:
<!-- bootstrap-ext -->
<link type="text/css" rel="stylesheet" href="components/bootstrap-ext/css/tables.css" />
<script src="components/bootstrap-ext/js/tables.js"></script>
Add the CSS class .fixed-col
to the <td>
and <th>
you want to keep fixed and then call $('#table-id').fixTableCols()
or simply call $('.table-responsive > table').fixTableCols()
to look on all tables in the page.
You can also just call $('#table-id').fixTableCols({columns: 2})
to fix the first two columns of the table.
Have a bug or a feature request? Please first search for existing and closed issues. If your problem or idea is not addressed yet, open a new issue.
Bootstrap Extensions is maintained under the Semantic Versioning guidelines.
Code and documentation copyright 2014 João Melo. Code released under the MIT license.