Get started with datatables.net-keytable-bs CDN

MIT licensed

Datatables.net: Keytable-BS adds Bootstrap keyboard navigation to DataTables.

Tags:
  • spreadsheet
  • excel
  • keyboard
  • DataTables
  • jQuery
  • table
  • Bootstrap

Stable version

Copied!

How to start using datatables.net-keytable-bs CDN


<!DOCTYPE html>
<html>
<head>
    <title>Get started with datatables.net-keytable-bs CDN - cdnhub.io</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://cdn.datatables.net/keytable/2.12.0/css/dataTables.keytable.min.css">
    <link rel="stylesheet" href="https://cdn.datatables.net/1.11.5/css/dataTables.bootstrap5.min.css">
</head>
<body>
    <div class="container mt-5">
        <table id="example" class="table table-bordered table-striped">
            <thead>
                <tr>
                    <th>Name</th>
                    <th>Age</th>
                    <th>City</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>John Doe</td>
                    <td>30</td>
                    <td>New York</td>
                </tr>
                <tr>
                    <td>Jane Doe</td>
                    <td>28</td>
                    <td>Los Angeles</td>
                </tr>
                <tr>
                    <td>Bob Smith</td>
                    <td>45</td>
                    <td>Chicago</td>
                </tr>
            </tbody>
        </table>
    </div>

    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"></script>
    <script src="https://cdn.datatables.net/1.11.5/js/jquery.dataTables.min.js"></script>
    <script src="https://cdn.datatables.net/keytable/2.12.0/js/dataTables.keytable.min.js"></script>
    <script src="https://cdn.datatables.net/1.11.5/js/dataTables.bootstrap5.min.js"></script>

    <script>
        $(document).ready(function() {
            $('#example').DataTable({
                keys: true,
                language: {
                    url: 'https://cdn.datatables.net/plug-ins/9dcbecd42ad/i18n/English.json'
                }
            });
        });
    </script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!

All versions