Get started with datatables.net-autofill-bs4 CDN

MIT licensed

Datatables.net-autofill-bs4 is a plugin that enables autofilling features in DataTables with Bootstrap 4.

Tags:
  • autofill
  • excel
  • DataTables
  • jQuery
  • table
  • Bootstrap 4

Stable version

Copied!

How to start using datatables.net-autofill-bs4 CDN


<!DOCTYPE html>
<html>
<head>
    <title>Get started with datatables.net-autofill-bs4 CDN - cdnhub.io</title>
    <link rel="stylesheet" href="https://stack.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/autofill/2.7.0/css/autoFill.bootstrap4.min.css">

    <style>
        .dataTables_wrapper {
            width: 100%;
        }
    </style>
</head>
<body>
    <div class="container mt-5">
        <table id="example" class="table table-bordered table-striped">
            <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>
        </table>
    </div>

    <script src="https://code.jquery.com/jquery-3.5.1.js"></script>
    <script src="https://cdn.datatables.net/1.11.5/js/jquery.dataTables.min.js"></script>
    <script src="https://cdn.datatables.net/autofill/2.7.0/js/dataTables.autoFill.min.js"></script>
    <script src="https://cdn.datatables.net/autofill/2.7.0/js/autoFill.bootstrap4.min.js"></script>

    <script>
        $(document).ready(function() {
            $('#example').DataTable({
                autoFill: {
                    delay: 1000
                }
            });
        });
    </script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!

All versions