Learn how to add and configure DataTables plugins in Bubble to build fast, sortable, and interactive tables without complex coding.

Starting a new venture? Need to upgrade your web or mobile app? RapidDev builds Bubble apps with your growth in mind.
To use DataTables in Bubble, you load the DataTables JS/CSS inside an HTML element, output your Bubble data as a plain HTML table, and initialize DataTables with a small JavaScript snippet. Bubble doesn’t support DataTables natively; you embed it manually.
You create a normal Bubble HTML element, place a basic HTML table inside it (rows populated by Bubble dynamic expressions), then run DataTables on that table using a standard script tag. Bubble allows JavaScript inside an HTML element, so you can initialize DataTables right there. This works because the table is rendered before the JavaScript runs.
Put an HTML element on the page and paste the following, replacing Search for Things with your actual data source.
<!-- Load DataTables + jQuery -->
<link rel="stylesheet" href="https://cdn.datatables.net/1.13.6/css/jquery.dataTables.min.css">
<script src="https://code.jquery.com/jquery-3.7.0.min.js"></script>
<script src="https://cdn.datatables.net/1.13.6/js/jquery.dataTables.min.js"></script>
<!-- Build the table with Bubble dynamic data -->
<table id="mytable">
<thead>
<tr>
<th>Name</th>
<th>Created</th>
</tr>
</thead>
<tbody>
<!-- Bubble will repeat this row -->
<!-- Example: a Thing called UserRecord -->
<tr>
<td>{{Search for UserRecord's Name:formatted as text}}</td>
<td>{{Search for UserRecord's Created Date}}</td>
</tr>
<!-- Bubble repeats the <tr> if you use "Repeating" in the HTML element via Expression -->
</tbody>
</table>
<script>
// Wait until Bubble finishes drawing the element
$(document).ready(function() {
$('#mytable').DataTable(); // Initialize DataTables
});
</script>
Bubble’s HTML element can’t “loop” itself, so most developers generate table rows using “Repeating group → HTML table mode” technique: put a Repeating Group on the page, but inside each cell use an HTML element that outputs a single <tr>. Then place an outer HTML element above/below with the static <table> wrapper. DataTables only needs a real rendered table; it doesn't care how Bubble produced it.
Learn how to seamlessly integrate Bubble.io with Git through our comprehensive step-by-step guide. Perfect for beginners and professionals.
Learn how to seamlessly integrate Bubble.io with Reddit Ads using our easy step-by-step guide. Boost your ad management today!
Explore our step-by-step guide on integrating Bubble.io with AWS S3, making your app development process more efficient and secure.
Follow our step-by-step guide to seamlessly integrate Bubble.io with Lucidchart, enhancing your workflow & productivity.
Learn how to seamlessly integrate Bubble.io and Kentico with our comprehensive, easy to follow step-by-step guide.
Discover easy-to-follow steps for integrating Bubble.io with Box. Boost your workflow and secure your files seamlessly today.
Fix broken workflows | Optimize logic | Boost performance | Scale with confidence