Dynamic Tables

Documentation and examples for creating dynamic tables with the Bootstrap Table extension.

The DITA Bootstrap Table plug-in is a DITA-OT plug-in that incorporates the Bootstrap Table library and adds the necessary CSS and JavaScript for dynamic tables with search, sort, and pagination functions.

For the full documentation, see infotexture.github.io/dita-bootstrap.table.

Installing the DITA Bootstrap Table plug-in

Use the dita command to add the DITA Bootstrap Table plug-in to your DITA Open Toolkit installation:

dita install net.infotexture.dita-bootstrap.table

Search and Filtering

Add <table otherprops="search"> to filter the results based on a search term.

Figure 1. Example table with the results filtering on "Bear"
<table otherprops="search">
  ...etc
</table>

Pagination

Add <table otherprops="pagination"> to add a pagination footer to a large table.

Figure 2. Paginated table with 140 rows reduced to ten
<table otherprops="pagination">
  ...etc
</table>

Sorting

Add <table otherprops="sortable"> to allow each column to be sorted dynamically.

Figure 3. Sorted table using reverse alphabetical order
<table otherprops="sortable">
  ...etc
</table>