JSFiddle - React, Tailwind, and code Playground
by tacman1123
HTML
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Welcome!</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/css/searchPanes.bootstrap5.min.css" rel="stylesheet">
<script type="module">
import bootstrap from 'https://cdn.jsdelivr.net/npm/[email protected]/+esm'
import "https://cdn.jsdelivr.net/npm/[email protected]/+esm";
import DataTables from "https://cdn.jsdelivr.net/npm/[email protected]/+esm";
import "https://cdn.jsdelivr.net/npm/[email protected]/+esm";
import "https://cdn.jsdelivr.net/npm/[email protected]/+esm";
let el=document.getElementById('example');
let table = new DataTables(el, {
searchPanes: {
layout: 'columns-1'
},
dom: '<"dtsp-dataTable"frtip>',
pageLength: 5
});
table.searchPanes();
/* document.querySelector("div.dtsp-verticalPanes").appendChild( table.searchPanes.container() ); */
</script>
</head>
<body>
<div class="dtsp-verticalContainer">
<div class="dtsp-verticalPanes"></div>
<div class="container">
<table id="example" class="display nowrap" width="100%">
<thead>
<tr>
<th>Name</th>
<th>Position</th>
<th>Office</th>
<th>Age</th>
<th>Start date</th>
<th>Salary</th>
</tr>
</thead>
<tfoot>
<tr>
<th>Name</th>
<th>Position</th>
<th>Office</th>
<th>Age</th>
<th>Start date</th>
<th>Salary</th>
</tr>
</tfoot>
<tbody>
<tr>
<td>Tiger Nixon</td>
<td>System Architect</td>
...