Datatables
Showcase your latest works with a jQuery grid plugin that provides powerful portfolio system, beautiful animated filtering or any other ordered grid content.
Datatables documentationHow to use
Copy-paste the init function under JS Implementing Plugins Init., before the closing </body>
tag, to enable it.
<script src="./node_modules/datatables/media/js/jquery.dataTables.min.js"></script>
Copy-paste the init function under JS Plugins Init., before the closing </body>
tag, to enable it.
<script src="./assets/js/hs.datatable.js"></script>
<script>
(function () {
// INITIALIZATION OF DATATABLES
// =======================================================
HSCore.components.HSDatatables.init('.js-datatable')
})()
</script>
Basic example
Users
Name | Position | Country | Status |
---|---|---|---|
Amanda Harvey
amanda@example.com
|
Director Human resources | United Kingdom | Active |
A
Anne Richard
anne@example.com
|
Seller Branding products | United States | Pending |
David Harrison
david@example.com
|
Unknown Unknown | United States | Active |
Finch Hoot
finch@example.com
|
Designer IT department | Argentina | Suspended |
B
Bob Dean
bob@example.com
|
Executive director Marketing | Austria | Active |
<div class="table-responsive datatable-custom">
<table class="js-datatable table table-borderless table-thead-bordered table-nowrap table-align-middle card-table"
data-hs-datatables-options='{
"order": []
}'>
<thead class="thead-light">
<tr>
<th>Name</th>
<th>Position</th>
<th>Country</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img10.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Amanda Harvey <i class="bi-patch-check-fill text-primary" data-toggle="tooltip" data-bs-placement="top" title="Top endorsed"></i></span>
<span class="d-block fs-5 text-body">amanda@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Director</span>
<span class="d-block fs-5">Human resources</span>
</td>
<td>United Kingdom</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">A</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Anne Richard</span>
<span class="d-block fs-5 text-body">anne@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Seller</span>
<span class="d-block fs-5">Branding products</span>
</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img3.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">David Harrison</span>
<span class="d-block fs-5 text-body">david@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block fs-5">Unknown</span>
</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img5.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Finch Hoot</span>
<span class="d-block fs-5 text-body">finch@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Designer</span>
<span class="d-block fs-5">IT department</span>
</td>
<td>Argentina</td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">B</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Bob Dean</span>
<span class="d-block fs-5 text-body">bob@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Executive director</span>
<span class="d-block fs-5">Marketing</span>
</td>
<td>Austria</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
</tbody>
</table>
</div>
With pagination
Users
Name | Position | Country | Status |
---|---|---|---|
Amanda Harvey
amanda@example.com
|
Director Human resources | United Kingdom | Active |
A
Anne Richard
anne@example.com
|
Seller Branding products | United States | Pending |
David Harrison
david@example.com
|
Unknown Unknown | United States | Active |
Finch Hoot
finch@example.com
|
Designer IT department | Argentina | Suspended |
B
Bob Dean
bob@example.com
|
Executive director Marketing | Austria | Active |
Ella Lauda
ella@example.com
|
Co-founder All departments | United Kingdom | Active |
L
Lori Hunter
hunter@example.com
|
Developer Mobile app | Estonia | Active |
M
Mark Colbert
mark@example.com
|
Executive director Human resources | Canada | Active |
Costa Quinn
costa@example.com
|
Co-founder All departments | France | Pending |
R
Rachel Doe
rachel@example.com
|
Accountant Finance | United States | Active |
Linda Bates
linda@example.com
|
Unknown Unknown | United Kingdom | Suspended |
B
Brian Halligan
brian@example.com
|
Director Accounting | France | Active |
C
Chris Mathew
chris@example.com
|
Developer Mobile app | Switzerland | Pending |
Clarice Boone
clarice@example.com
|
Seller Branding products | United Kingdom | Active |
L
Lewis Clarke
lewis@example.com
|
Co-founder IT department | Switzerland | Pending |
Sam Kart
sam@example.com
|
Designer Branding | Canada | Pending |
J
Johnny Appleseed
johnny@example.com
|
Accountant Human resources | United States | Active |
P
Phileas Fogg
phileas@example.com
|
Designer Branding | Spain | Suspended |
Mark Williams
mark@example.com
|
Co-founder Branding | United Kingdom | Active |
T
Timothy Silva
timothy@example.com
|
Developer Mobile app | Italy | Pending |
G
Gary Bishop
gary@example.com
|
Developer Mobile app | Latvia | Active |
Y
Yorker Scogings
yorker@example.com
|
Seller Branding products | Norway | Suspended |
F
Frank Phillips
frank@example.com
|
Unknown Unknown | Norway | Suspended |
E
Elizabeth Carter
eliz@example.com
|
Unknown Unknown | United States | Pending |
<div class="card">
<div class="card-header">
<h4 class="card-header-title">Users</h4>
</div>
<!-- Table -->
<div class="table-responsive datatable-custom">
<table class="js-datatable table table-borderless table-thead-bordered table-nowrap table-align-middle card-table"
data-hs-datatables-options='{
"order": [],
"isResponsive": false,
"isShowPaging": false,
"pagination": "datatableWithPaginationPagination"
}'>
<thead class="thead-light">
<tr>
<th>Name</th>
<th>Position</th>
<th>Country</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img10.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Amanda Harvey <i class="bi-patch-check-fill text-primary" data-toggle="tooltip" data-bs-placement="top" title="Top endorsed"></i></span>
<span class="d-block fs-5 text-body">amanda@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Director</span>
<span class="d-block fs-5">Human resources</span>
</td>
<td>United Kingdom</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">A</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Anne Richard</span>
<span class="d-block fs-5 text-body">anne@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Seller</span>
<span class="d-block fs-5">Branding products</span>
</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img3.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">David Harrison</span>
<span class="d-block fs-5 text-body">david@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block fs-5">Unknown</span>
</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img5.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Finch Hoot</span>
<span class="d-block fs-5 text-body">finch@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Designer</span>
<span class="d-block fs-5">IT department</span>
</td>
<td>Argentina</td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">B</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Bob Dean</span>
<span class="d-block fs-5 text-body">bob@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Executive director</span>
<span class="d-block fs-5">Marketing</span>
</td>
<td>Austria</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img9.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Ella Lauda <i class="bi-patch-check-fill text-primary" data-toggle="tooltip" data-bs-placement="top" title="Top endorsed"></i></span>
<span class="d-block fs-5 text-body">ella@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Co-founder</span>
<span class="d-block fs-5">All departments</span>
</td>
<td>United Kingdom</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">L</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Lori Hunter</span>
<span class="d-block fs-5 text-body">hunter@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Developer</span>
<span class="d-block fs-5">Mobile app</span>
</td>
<td>Estonia</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">M</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Mark Colbert</span>
<span class="d-block fs-5 text-body">mark@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Executive director</span>
<span class="d-block fs-5">Human resources</span>
</td>
<td>Canada</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img6.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Costa Quinn</span>
<span class="d-block fs-5 text-body">costa@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Co-founder</span>
<span class="d-block fs-5">All departments</span>
</td>
<td>France</td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">R</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Rachel Doe <i class="bi-patch-check-fill text-primary" data-toggle="tooltip" data-bs-placement="top" title="Top endorsed"></i></span>
<span class="d-block fs-5 text-body">rachel@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Accountant</span>
<span class="d-block fs-5">Finance</span>
</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img8.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Linda Bates</span>
<span class="d-block fs-5 text-body">linda@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block fs-5">Unknown</span>
</td>
<td>United Kingdom</td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">B</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Brian Halligan</span>
<span class="d-block fs-5 text-body">brian@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Director</span>
<span class="d-block fs-5">Accounting</span>
</td>
<td>France</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">C</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Chris Mathew</span>
<span class="d-block fs-5 text-body">chris@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Developer</span>
<span class="d-block fs-5">Mobile app</span>
</td>
<td>Switzerland</td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img7.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Clarice Boone <i class="bi-patch-check-fill text-primary" data-toggle="tooltip" data-bs-placement="top" title="Top endorsed"></i></span>
<span class="d-block fs-5 text-body">clarice@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Seller</span>
<span class="d-block fs-5">Branding products</span>
</td>
<td>United Kingdom</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">L</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Lewis Clarke</span>
<span class="d-block fs-5 text-body">lewis@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Co-founder</span>
<span class="d-block fs-5">IT department</span>
</td>
<td>Switzerland</td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img4.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Sam Kart</span>
<span class="d-block fs-5 text-body">sam@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Designer</span>
<span class="d-block fs-5">Branding</span>
</td>
<td>Canada</td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">J</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Johnny Appleseed</span>
<span class="d-block fs-5 text-body">johnny@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Accountant</span>
<span class="d-block fs-5">Human resources</span>
</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">P</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Phileas Fogg</span>
<span class="d-block fs-5 text-body">phileas@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Designer</span>
<span class="d-block fs-5">Branding</span>
</td>
<td>Spain</td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img6.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Mark Williams <i class="bi-patch-check-fill text-primary" data-toggle="tooltip" data-bs-placement="top" title="Top endorsed"></i></span>
<span class="d-block fs-5 text-body">mark@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Co-founder</span>
<span class="d-block fs-5">Branding</span>
</td>
<td>United Kingdom</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">T</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Timothy Silva</span>
<span class="d-block fs-5 text-body">timothy@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Developer</span>
<span class="d-block fs-5">Mobile app</span>
</td>
<td>Italy</td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">G</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Gary Bishop <i class="bi-patch-check-fill text-primary" data-toggle="tooltip" data-bs-placement="top" title="Top endorsed"></i></span>
<span class="d-block fs-5 text-body">gary@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Developer</span>
<span class="d-block fs-5">Mobile app</span>
</td>
<td>Latvia</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">Y</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Yorker Scogings</span>
<span class="d-block fs-5 text-body">yorker@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Seller</span>
<span class="d-block fs-5">Branding products</span>
</td>
<td>Norway</td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">F</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Frank Phillips</span>
<span class="d-block fs-5 text-body">frank@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block fs-5">Unknown</span>
</td>
<td>Norway</td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">E</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Elizabeth Carter</span>
<span class="d-block fs-5 text-body">eliz@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block fs-5">Unknown</span>
</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
</tbody>
</table>
</div>
<!-- End Table -->
<!-- Footer -->
<div class="card-footer">
<!-- Pagination -->
<div class="d-flex justify-content-center justify-content-sm-end">
<nav id="datatableWithPaginationPagination" aria-label="Activity pagination"></nav>
</div>
<!-- End Pagination -->
</div>
<!-- End Footer -->
</div>
Example with entries:
This example uses Tom Select library.
Users
Name | Position | Country | Status |
---|---|---|---|
Amanda Harvey
amanda@example.com
|
Director Human resources | United Kingdom | Active |
A
Anne Richard
anne@example.com
|
Seller Branding products | United States | Pending |
David Harrison
david@example.com
|
Unknown Unknown | United States | Active |
Finch Hoot
finch@example.com
|
Designer IT department | Argentina | Suspended |
B
Bob Dean
bob@example.com
|
Executive director Marketing | Austria | Active |
Ella Lauda
ella@example.com
|
Co-founder All departments | United Kingdom | Active |
L
Lori Hunter
hunter@example.com
|
Developer Mobile app | Estonia | Active |
M
Mark Colbert
mark@example.com
|
Executive director Human resources | Canada | Active |
Costa Quinn
costa@example.com
|
Co-founder All departments | France | Pending |
R
Rachel Doe
rachel@example.com
|
Accountant Finance | United States | Active |
Linda Bates
linda@example.com
|
Unknown Unknown | United Kingdom | Suspended |
B
Brian Halligan
brian@example.com
|
Director Accounting | France | Active |
C
Chris Mathew
chris@example.com
|
Developer Mobile app | Switzerland | Pending |
Clarice Boone
clarice@example.com
|
Seller Branding products | United Kingdom | Active |
L
Lewis Clarke
lewis@example.com
|
Co-founder IT department | Switzerland | Pending |
Sam Kart
sam@example.com
|
Designer Branding | Canada | Pending |
J
Johnny Appleseed
johnny@example.com
|
Accountant Human resources | United States | Active |
P
Phileas Fogg
phileas@example.com
|
Designer Branding | Spain | Suspended |
Mark Williams
mark@example.com
|
Co-founder Branding | United Kingdom | Active |
T
Timothy Silva
timothy@example.com
|
Developer Mobile app | Italy | Pending |
G
Gary Bishop
gary@example.com
|
Developer Mobile app | Latvia | Active |
Y
Yorker Scogings
yorker@example.com
|
Seller Branding products | Norway | Suspended |
F
Frank Phillips
frank@example.com
|
Unknown Unknown | Norway | Suspended |
E
Elizabeth Carter
eliz@example.com
|
Unknown Unknown | United States | Pending |
Showing:
of
<div class="card">
<div class="card-header">
<h4 class="card-header-title">Users</h4>
</div>
<!-- Table -->
<div class="table-responsive datatable-custom">
<table class="js-datatable table table-borderless table-thead-bordered table-nowrap table-align-middle card-table"
data-hs-datatables-options='{
"order": [],
"info": {
"totalQty": "#datatableEntriesInfoTotalQty"
},
"entries": "#datatableEntries",
"isResponsive": false,
"isShowPaging": false,
"pagination": "datatableEntriesPagination"
}'>
<thead class="thead-light">
<tr>
<th>Name</th>
<th>Position</th>
<th>Country</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img10.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Amanda Harvey <i class="bi-patch-check-fill text-primary" data-toggle="tooltip" data-bs-placement="top" title="Top endorsed"></i></span>
<span class="d-block fs-5 text-body">amanda@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Director</span>
<span class="d-block fs-5">Human resources</span>
</td>
<td>United Kingdom</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">A</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Anne Richard</span>
<span class="d-block fs-5 text-body">anne@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Seller</span>
<span class="d-block fs-5">Branding products</span>
</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img3.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">David Harrison</span>
<span class="d-block fs-5 text-body">david@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block fs-5">Unknown</span>
</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img5.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Finch Hoot</span>
<span class="d-block fs-5 text-body">finch@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Designer</span>
<span class="d-block fs-5">IT department</span>
</td>
<td>Argentina</td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">B</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Bob Dean</span>
<span class="d-block fs-5 text-body">bob@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Executive director</span>
<span class="d-block fs-5">Marketing</span>
</td>
<td>Austria</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img9.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Ella Lauda <i class="bi-patch-check-fill text-primary" data-toggle="tooltip" data-bs-placement="top" title="Top endorsed"></i></span>
<span class="d-block fs-5 text-body">ella@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Co-founder</span>
<span class="d-block fs-5">All departments</span>
</td>
<td>United Kingdom</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">L</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Lori Hunter</span>
<span class="d-block fs-5 text-body">hunter@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Developer</span>
<span class="d-block fs-5">Mobile app</span>
</td>
<td>Estonia</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">M</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Mark Colbert</span>
<span class="d-block fs-5 text-body">mark@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Executive director</span>
<span class="d-block fs-5">Human resources</span>
</td>
<td>Canada</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img6.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Costa Quinn</span>
<span class="d-block fs-5 text-body">costa@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Co-founder</span>
<span class="d-block fs-5">All departments</span>
</td>
<td>France</td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">R</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Rachel Doe <i class="bi-patch-check-fill text-primary" data-toggle="tooltip" data-bs-placement="top" title="Top endorsed"></i></span>
<span class="d-block fs-5 text-body">rachel@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Accountant</span>
<span class="d-block fs-5">Finance</span>
</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img8.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Linda Bates</span>
<span class="d-block fs-5 text-body">linda@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block fs-5">Unknown</span>
</td>
<td>United Kingdom</td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">B</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Brian Halligan</span>
<span class="d-block fs-5 text-body">brian@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Director</span>
<span class="d-block fs-5">Accounting</span>
</td>
<td>France</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">C</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Chris Mathew</span>
<span class="d-block fs-5 text-body">chris@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Developer</span>
<span class="d-block fs-5">Mobile app</span>
</td>
<td>Switzerland</td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img7.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Clarice Boone <i class="bi-patch-check-fill text-primary" data-toggle="tooltip" data-bs-placement="top" title="Top endorsed"></i></span>
<span class="d-block fs-5 text-body">clarice@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Seller</span>
<span class="d-block fs-5">Branding products</span>
</td>
<td>United Kingdom</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">L</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Lewis Clarke</span>
<span class="d-block fs-5 text-body">lewis@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Co-founder</span>
<span class="d-block fs-5">IT department</span>
</td>
<td>Switzerland</td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img4.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Sam Kart</span>
<span class="d-block fs-5 text-body">sam@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Designer</span>
<span class="d-block fs-5">Branding</span>
</td>
<td>Canada</td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">J</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Johnny Appleseed</span>
<span class="d-block fs-5 text-body">johnny@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Accountant</span>
<span class="d-block fs-5">Human resources</span>
</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">P</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Phileas Fogg</span>
<span class="d-block fs-5 text-body">phileas@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Designer</span>
<span class="d-block fs-5">Branding</span>
</td>
<td>Spain</td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img6.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Mark Williams <i class="bi-patch-check-fill text-primary" data-toggle="tooltip" data-bs-placement="top" title="Top endorsed"></i></span>
<span class="d-block fs-5 text-body">mark@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Co-founder</span>
<span class="d-block fs-5">Branding</span>
</td>
<td>United Kingdom</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">T</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Timothy Silva</span>
<span class="d-block fs-5 text-body">timothy@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Developer</span>
<span class="d-block fs-5">Mobile app</span>
</td>
<td>Italy</td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">G</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Gary Bishop <i class="bi-patch-check-fill text-primary" data-toggle="tooltip" data-bs-placement="top" title="Top endorsed"></i></span>
<span class="d-block fs-5 text-body">gary@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Developer</span>
<span class="d-block fs-5">Mobile app</span>
</td>
<td>Latvia</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">Y</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Yorker Scogings</span>
<span class="d-block fs-5 text-body">yorker@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Seller</span>
<span class="d-block fs-5">Branding products</span>
</td>
<td>Norway</td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">F</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Frank Phillips</span>
<span class="d-block fs-5 text-body">frank@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block fs-5">Unknown</span>
</td>
<td>Norway</td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">E</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Elizabeth Carter</span>
<span class="d-block fs-5 text-body">eliz@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block fs-5">Unknown</span>
</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
</tbody>
</table>
</div>
<!-- End Table -->
<!-- Footer -->
<div class="card-footer">
<!-- Pagination -->
<div class="row justify-content-center justify-content-sm-between align-items-sm-center">
<div class="col-sm mb-2 mb-sm-0">
<div class="d-flex justify-content-center justify-content-sm-start align-items-center">
<span class="me-2">Showing:</span>
<!-- Select -->
<div class="tom-select-custom">
<select id="datatableEntries" class="js-select form-select form-select-borderless w-auto" autocomplete="off"
data-hs-tom-select-options='{
"searchInDropdown": false,
"hideSearch": true
}'>
<option value="4">4</option>
<option value="6">6</option>
<option value="8" selected>8</option>
<option value="12">12</option>
</select>
</div>
<!-- End Select -->
<span class="text-secondary me-2">of</span>
<!-- Pagination Quantity -->
<span id="datatableEntriesInfoTotalQty"></span>
</div>
</div>
<div class="col-sm-auto">
<div class="d-flex justify-content-center justify-content-sm-end">
<!-- Pagination -->
<nav id="datatableEntriesPagination" aria-label="Activity pagination"></nav>
</div>
</div>
</div>
<!-- End Pagination -->
</div>
<!-- End Footer -->
</div>
<link rel="stylesheet" href="../node_modules/tom-select/dist/css/tom-select.bootstrap5.css">
<!-- JS Implementing Plugins -->
<script src="../node_modules/tom-select/dist/js/tom-select.complete.min.js"></script>
<!-- JS Front -->
<script src="../js/hs.tom-select.js"></script>
<script>
(function () {
// INITIALIZATION OF SELECT
// =======================================================
HSCore.components.HSTomSelect.init('.js-select')
document.querySelectorAll('.js-datatable-filter').forEach(function (item) {
item.addEventListener('change', function(e) {
const elVal = e.target.value,
targetColumnIndex = e.target.getAttribute('data-target-column-index'),
targetTable = e.target.getAttribute('data-target-table');
HSCore.components.HSDatatables.getItem(targetTable).column(targetColumnIndex).search(elVal !== 'null' ? elVal : '').draw()
})
})
})()
</script>
With search
Users
Name | Position | Country | Status |
---|---|---|---|
Amanda Harvey
amanda@example.com
|
Director Human resources | United Kingdom | Active |
A
Anne Richard
anne@example.com
|
Seller Branding products | United States | Pending |
David Harrison
david@example.com
|
Unknown Unknown | United States | Active |
Finch Hoot
finch@example.com
|
Designer IT department | Argentina | Suspended |
B
Bob Dean
bob@example.com
|
Executive director Marketing | Austria | Active |
Ella Lauda
ella@example.com
|
Co-founder All departments | United Kingdom | Active |
L
Lori Hunter
hunter@example.com
|
Developer Mobile app | Estonia | Active |
M
Mark Colbert
mark@example.com
|
Executive director Human resources | Canada | Active |
Costa Quinn
costa@example.com
|
Co-founder All departments | France | Pending |
R
Rachel Doe
rachel@example.com
|
Accountant Finance | United States | Active |
Linda Bates
linda@example.com
|
Unknown Unknown | United Kingdom | Suspended |
B
Brian Halligan
brian@example.com
|
Director Accounting | France | Active |
C
Chris Mathew
chris@example.com
|
Developer Mobile app | Switzerland | Pending |
Clarice Boone
clarice@example.com
|
Seller Branding products | United Kingdom | Active |
L
Lewis Clarke
lewis@example.com
|
Co-founder IT department | Switzerland | Pending |
Sam Kart
sam@example.com
|
Designer Branding | Canada | Pending |
J
Johnny Appleseed
johnny@example.com
|
Accountant Human resources | United States | Active |
P
Phileas Fogg
phileas@example.com
|
Designer Branding | Spain | Suspended |
Mark Williams
mark@example.com
|
Co-founder Branding | United Kingdom | Active |
T
Timothy Silva
timothy@example.com
|
Developer Mobile app | Italy | Pending |
G
Gary Bishop
gary@example.com
|
Developer Mobile app | Latvia | Active |
Y
Yorker Scogings
yorker@example.com
|
Seller Branding products | Norway | Suspended |
F
Frank Phillips
frank@example.com
|
Unknown Unknown | Norway | Suspended |
E
Elizabeth Carter
eliz@example.com
|
Unknown Unknown | United States | Pending |
<div class="card">
<!-- Header -->
<div class="card-header">
<div class="row justify-content-between align-items-center flex-grow-1">
<div class="col-12 col-md">
<div class="d-flex justify-content-between align-items-center">
<h5 class="card-header-title">Users</h5>
</div>
</div>
<div class="col-auto">
<!-- Filter -->
<form>
<!-- Search -->
<div class="input-group input-group-merge input-group-flush">
<div class="input-group-prepend input-group-text">
<i class="bi-search"></i>
</div>
<input id="datatableWithSearchInput" type="search" class="form-control" placeholder="Search users" aria-label="Search users">
</div>
<!-- End Search -->
</form>
<!-- End Filter -->
</div>
</div>
</div>
<!-- End Header -->
<!-- Table -->
<div class="table-responsive datatable-custom">
<table class="js-datatable table table-borderless table-thead-bordered table-nowrap table-align-middle card-table"
data-hs-datatables-options='{
"order": [],
"search": "#datatableWithSearchInput",
"isResponsive": false,
"isShowPaging": false,
"pagination": "datatableWithSearchPagination"
}'>
<thead class="thead-light">
<tr>
<th>Name</th>
<th>Position</th>
<th>Country</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img10.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Amanda Harvey <i class="bi-patch-check-fill text-primary" data-toggle="tooltip" data-bs-placement="top" title="Top endorsed"></i></span>
<span class="d-block fs-5 text-body">amanda@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Director</span>
<span class="d-block fs-5">Human resources</span>
</td>
<td>United Kingdom</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">A</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Anne Richard</span>
<span class="d-block fs-5 text-body">anne@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Seller</span>
<span class="d-block fs-5">Branding products</span>
</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img3.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">David Harrison</span>
<span class="d-block fs-5 text-body">david@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block fs-5">Unknown</span>
</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img5.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Finch Hoot</span>
<span class="d-block fs-5 text-body">finch@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Designer</span>
<span class="d-block fs-5">IT department</span>
</td>
<td>Argentina</td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">B</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Bob Dean</span>
<span class="d-block fs-5 text-body">bob@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Executive director</span>
<span class="d-block fs-5">Marketing</span>
</td>
<td>Austria</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img9.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Ella Lauda <i class="bi-patch-check-fill text-primary" data-toggle="tooltip" data-bs-placement="top" title="Top endorsed"></i></span>
<span class="d-block fs-5 text-body">ella@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Co-founder</span>
<span class="d-block fs-5">All departments</span>
</td>
<td>United Kingdom</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">L</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Lori Hunter</span>
<span class="d-block fs-5 text-body">hunter@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Developer</span>
<span class="d-block fs-5">Mobile app</span>
</td>
<td>Estonia</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">M</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Mark Colbert</span>
<span class="d-block fs-5 text-body">mark@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Executive director</span>
<span class="d-block fs-5">Human resources</span>
</td>
<td>Canada</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img6.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Costa Quinn</span>
<span class="d-block fs-5 text-body">costa@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Co-founder</span>
<span class="d-block fs-5">All departments</span>
</td>
<td>France</td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">R</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Rachel Doe <i class="bi-patch-check-fill text-primary" data-toggle="tooltip" data-bs-placement="top" title="Top endorsed"></i></span>
<span class="d-block fs-5 text-body">rachel@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Accountant</span>
<span class="d-block fs-5">Finance</span>
</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img8.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Linda Bates</span>
<span class="d-block fs-5 text-body">linda@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block fs-5">Unknown</span>
</td>
<td>United Kingdom</td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">B</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Brian Halligan</span>
<span class="d-block fs-5 text-body">brian@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Director</span>
<span class="d-block fs-5">Accounting</span>
</td>
<td>France</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">C</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Chris Mathew</span>
<span class="d-block fs-5 text-body">chris@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Developer</span>
<span class="d-block fs-5">Mobile app</span>
</td>
<td>Switzerland</td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img7.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Clarice Boone <i class="bi-patch-check-fill text-primary" data-toggle="tooltip" data-bs-placement="top" title="Top endorsed"></i></span>
<span class="d-block fs-5 text-body">clarice@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Seller</span>
<span class="d-block fs-5">Branding products</span>
</td>
<td>United Kingdom</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">L</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Lewis Clarke</span>
<span class="d-block fs-5 text-body">lewis@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Co-founder</span>
<span class="d-block fs-5">IT department</span>
</td>
<td>Switzerland</td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img4.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Sam Kart</span>
<span class="d-block fs-5 text-body">sam@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Designer</span>
<span class="d-block fs-5">Branding</span>
</td>
<td>Canada</td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">J</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Johnny Appleseed</span>
<span class="d-block fs-5 text-body">johnny@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Accountant</span>
<span class="d-block fs-5">Human resources</span>
</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">P</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Phileas Fogg</span>
<span class="d-block fs-5 text-body">phileas@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Designer</span>
<span class="d-block fs-5">Branding</span>
</td>
<td>Spain</td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img6.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Mark Williams <i class="bi-patch-check-fill text-primary" data-toggle="tooltip" data-bs-placement="top" title="Top endorsed"></i></span>
<span class="d-block fs-5 text-body">mark@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Co-founder</span>
<span class="d-block fs-5">Branding</span>
</td>
<td>United Kingdom</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">T</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Timothy Silva</span>
<span class="d-block fs-5 text-body">timothy@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Developer</span>
<span class="d-block fs-5">Mobile app</span>
</td>
<td>Italy</td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">G</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Gary Bishop <i class="bi-patch-check-fill text-primary" data-toggle="tooltip" data-bs-placement="top" title="Top endorsed"></i></span>
<span class="d-block fs-5 text-body">gary@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Developer</span>
<span class="d-block fs-5">Mobile app</span>
</td>
<td>Latvia</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">Y</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Yorker Scogings</span>
<span class="d-block fs-5 text-body">yorker@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Seller</span>
<span class="d-block fs-5">Branding products</span>
</td>
<td>Norway</td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">F</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Frank Phillips</span>
<span class="d-block fs-5 text-body">frank@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block fs-5">Unknown</span>
</td>
<td>Norway</td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">E</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Elizabeth Carter</span>
<span class="d-block fs-5 text-body">eliz@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block fs-5">Unknown</span>
</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
</tbody>
</table>
</div>
<!-- End Table -->
<!-- Footer -->
<div class="card-footer">
<!-- Pagination -->
<div class="d-flex justify-content-center justify-content-sm-end">
<nav id="datatableWithSearchPagination" aria-label="Activity pagination"></nav>
</div>
<!-- End Pagination -->
</div>
<!-- End Footer -->
</div>
With filter
This example uses Tom Select library.
Users
Name | Position | Country | Status |
---|---|---|---|
Amanda Harvey
amanda@example.com
|
Director Human resources | United Kingdom | Active |
A
Anne Richard
anne@example.com
|
Seller Branding products | United States | Pending |
David Harrison
david@example.com
|
Unknown Unknown | United States | Active |
Finch Hoot
finch@example.com
|
Designer IT department | Argentina | Suspended |
B
Bob Dean
bob@example.com
|
Executive director Marketing | Austria | Active |
Ella Lauda
ella@example.com
|
Co-founder All departments | United Kingdom | Active |
L
Lori Hunter
hunter@example.com
|
Developer Mobile app | Estonia | Active |
M
Mark Colbert
mark@example.com
|
Executive director Human resources | Canada | Active |
Costa Quinn
costa@example.com
|
Co-founder All departments | France | Pending |
R
Rachel Doe
rachel@example.com
|
Accountant Finance | United States | Active |
Linda Bates
linda@example.com
|
Unknown Unknown | United Kingdom | Suspended |
B
Brian Halligan
brian@example.com
|
Director Accounting | France | Active |
C
Chris Mathew
chris@example.com
|
Developer Mobile app | Switzerland | Pending |
Clarice Boone
clarice@example.com
|
Seller Branding products | United Kingdom | Active |
L
Lewis Clarke
lewis@example.com
|
Co-founder IT department | Switzerland | Pending |
Sam Kart
sam@example.com
|
Designer Branding | Canada | Pending |
J
Johnny Appleseed
johnny@example.com
|
Accountant Human resources | United States | Active |
P
Phileas Fogg
phileas@example.com
|
Designer Branding | Spain | Suspended |
Mark Williams
mark@example.com
|
Co-founder Branding | United Kingdom | Active |
T
Timothy Silva
timothy@example.com
|
Developer Mobile app | Italy | Pending |
G
Gary Bishop
gary@example.com
|
Developer Mobile app | Latvia | Active |
Y
Yorker Scogings
yorker@example.com
|
Seller Branding products | Norway | Suspended |
F
Frank Phillips
frank@example.com
|
Unknown Unknown | Norway | Suspended |
E
Elizabeth Carter
eliz@example.com
|
Unknown Unknown | United States | Pending |
<div class="card">
<!-- Header -->
<div class="card-header">
<div class="row justify-content-between align-items-center flex-grow-1">
<div class="col-12 col-md">
<div class="d-flex justify-content-between align-items-center">
<h5 class="card-header-title">Users</h5>
</div>
</div>
<div class="col-md-auto">
<!-- Filter -->
<div class="row align-items-center">
<div class="col-auto">
<!-- Select -->
<div class="tom-select-custom">
<select class="js-select js-datatable-filter form-select form-select-sm form-select-borderless" autocomplete="off"
data-target-column-index="1"
data-target-table="datatbleWithFilter"
data-hs-tom-select-options='{
"searchInDropdown": false,
"hideSearch": true,
"dropdownWidth": "10rem"
}'>
<option value="null" selected>Any</option>
<option value="Accountant">Accountant</option>
<option value="Co-founder">Co-founder</option>
<option value="Designer">Designer</option>
<option value="Developer">Developer</option>
<option value="Director">Director</option>
</select>
</div>
<!-- End Select -->
</div>
<div class="col">
<form>
<!-- Search -->
<div class="input-group input-group-merge input-group-flush">
<div class="input-group-prepend input-group-text">
<i class="bi-search"></i>
</div>
<input id="datatableWithFilterSearch" type="search" class="form-control" placeholder="Search users" aria-label="Search users">
</div>
<!-- End Search -->
</form>
</div>
</div>
<!-- End Filter -->
</div>
</div>
</div>
<!-- End Header -->
<!-- Table -->
<div class="table-responsive datatable-custom">
<table id="datatbleWithFilter" class="js-datatable table table-borderless table-thead-bordered table-nowrap table-align-middle card-table"
data-hs-datatables-options='{
"columnDefs": [{
"targets": [1],
"orderable": false
}],
"order": [],
"search": "#datatableWithFilterSearch",
"isResponsive": false,
"isShowPaging": false,
"pagination": "datatableWithFilterPagination"
}'>
<thead class="thead-light">
<tr>
<th>Name</th>
<th>Position</th>
<th>Country</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img10.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Amanda Harvey <i class="bi-patch-check-fill text-primary" data-toggle="tooltip" data-bs-placement="top" title="Top endorsed"></i></span>
<span class="d-block fs-5 text-body">amanda@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Director</span>
<span class="d-block fs-5">Human resources</span>
</td>
<td>United Kingdom</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">A</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Anne Richard</span>
<span class="d-block fs-5 text-body">anne@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Seller</span>
<span class="d-block fs-5">Branding products</span>
</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img3.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">David Harrison</span>
<span class="d-block fs-5 text-body">david@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block fs-5">Unknown</span>
</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img5.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Finch Hoot</span>
<span class="d-block fs-5 text-body">finch@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Designer</span>
<span class="d-block fs-5">IT department</span>
</td>
<td>Argentina</td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">B</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Bob Dean</span>
<span class="d-block fs-5 text-body">bob@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Executive director</span>
<span class="d-block fs-5">Marketing</span>
</td>
<td>Austria</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img9.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Ella Lauda <i class="bi-patch-check-fill text-primary" data-toggle="tooltip" data-bs-placement="top" title="Top endorsed"></i></span>
<span class="d-block fs-5 text-body">ella@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Co-founder</span>
<span class="d-block fs-5">All departments</span>
</td>
<td>United Kingdom</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">L</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Lori Hunter</span>
<span class="d-block fs-5 text-body">hunter@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Developer</span>
<span class="d-block fs-5">Mobile app</span>
</td>
<td>Estonia</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">M</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Mark Colbert</span>
<span class="d-block fs-5 text-body">mark@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Executive director</span>
<span class="d-block fs-5">Human resources</span>
</td>
<td>Canada</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img6.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Costa Quinn</span>
<span class="d-block fs-5 text-body">costa@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Co-founder</span>
<span class="d-block fs-5">All departments</span>
</td>
<td>France</td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">R</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Rachel Doe <i class="bi-patch-check-fill text-primary" data-toggle="tooltip" data-bs-placement="top" title="Top endorsed"></i></span>
<span class="d-block fs-5 text-body">rachel@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Accountant</span>
<span class="d-block fs-5">Finance</span>
</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img8.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Linda Bates</span>
<span class="d-block fs-5 text-body">linda@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block fs-5">Unknown</span>
</td>
<td>United Kingdom</td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">B</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Brian Halligan</span>
<span class="d-block fs-5 text-body">brian@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Director</span>
<span class="d-block fs-5">Accounting</span>
</td>
<td>France</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">C</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Chris Mathew</span>
<span class="d-block fs-5 text-body">chris@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Developer</span>
<span class="d-block fs-5">Mobile app</span>
</td>
<td>Switzerland</td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img7.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Clarice Boone <i class="bi-patch-check-fill text-primary" data-toggle="tooltip" data-bs-placement="top" title="Top endorsed"></i></span>
<span class="d-block fs-5 text-body">clarice@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Seller</span>
<span class="d-block fs-5">Branding products</span>
</td>
<td>United Kingdom</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">L</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Lewis Clarke</span>
<span class="d-block fs-5 text-body">lewis@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Co-founder</span>
<span class="d-block fs-5">IT department</span>
</td>
<td>Switzerland</td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img4.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Sam Kart</span>
<span class="d-block fs-5 text-body">sam@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Designer</span>
<span class="d-block fs-5">Branding</span>
</td>
<td>Canada</td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">J</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Johnny Appleseed</span>
<span class="d-block fs-5 text-body">johnny@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Accountant</span>
<span class="d-block fs-5">Human resources</span>
</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">P</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Phileas Fogg</span>
<span class="d-block fs-5 text-body">phileas@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Designer</span>
<span class="d-block fs-5">Branding</span>
</td>
<td>Spain</td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img6.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Mark Williams <i class="bi-patch-check-fill text-primary" data-toggle="tooltip" data-bs-placement="top" title="Top endorsed"></i></span>
<span class="d-block fs-5 text-body">mark@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Co-founder</span>
<span class="d-block fs-5">Branding</span>
</td>
<td>United Kingdom</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">T</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Timothy Silva</span>
<span class="d-block fs-5 text-body">timothy@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Developer</span>
<span class="d-block fs-5">Mobile app</span>
</td>
<td>Italy</td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">G</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Gary Bishop <i class="bi-patch-check-fill text-primary" data-toggle="tooltip" data-bs-placement="top" title="Top endorsed"></i></span>
<span class="d-block fs-5 text-body">gary@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Developer</span>
<span class="d-block fs-5">Mobile app</span>
</td>
<td>Latvia</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">Y</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Yorker Scogings</span>
<span class="d-block fs-5 text-body">yorker@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Seller</span>
<span class="d-block fs-5">Branding products</span>
</td>
<td>Norway</td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">F</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Frank Phillips</span>
<span class="d-block fs-5 text-body">frank@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block fs-5">Unknown</span>
</td>
<td>Norway</td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">E</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Elizabeth Carter</span>
<span class="d-block fs-5 text-body">eliz@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block fs-5">Unknown</span>
</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
</tbody>
</table>
</div>
<!-- End Table -->
<!-- Footer -->
<div class="card-footer">
<!-- Pagination -->
<div class="d-flex justify-content-center justify-content-sm-end">
<nav id="datatableWithFilterPagination" aria-label="Activity pagination"></nav>
</div>
<!-- End Pagination -->
</div>
<!-- End Footer -->
</div>
<link rel="stylesheet" href="../node_modules/tom-select/dist/css/tom-select.bootstrap5.css">
<!-- JS Implementing Plugins -->
<script src="../node_modules/tom-select/dist/js/tom-select.complete.min.js"></script>
<!-- JS Front -->
<script src="../assets/js/hs.tom-select.js"></script>
<script>
(function () {
// INITIALIZATION OF SELECT
// =======================================================
HSCore.components.HSTomSelect.init('.js-select')
})()
</script>
Checkbox select
This example uses Datatable Select extension library.
Users
0
Selected
Delete
|
Name | Position | Country | Status |
---|---|---|---|---|
|
Amanda Harvey
amanda@example.com
|
Director Human resources | United Kingdom | Active |
|
A
Anne Richard
anne@example.com
|
Seller Branding products | United States | Pending |
|
David Harrison
david@example.com
|
Unknown Unknown | United States | Active |
|
Finch Hoot
finch@example.com
|
Designer IT department | Argentina | Suspended |
|
B
Bob Dean
bob@example.com
|
Executive director Marketing | Austria | Active |
<div class="card">
<!-- Header -->
<div class="card-header">
<div class="d-flex justify-content-between align-items-center">
<div class="col-md">
<h5 class="card-header-title">Users</h5>
</div>
<div class="col-auto">
<!-- Datatable Info -->
<div id="datatableWithCheckboxSelectCounterInfo" class="me-2" style="display: none;">
<div class="d-flex align-items-center">
<span class="fs-5 me-3">
<span id="datatableWithCheckboxSelectCounter">0</span>
Selected
</span>
<a class="btn btn-sm btn-outline-danger" href="javascript:;">
<i class="bi bi-trash"></i> Delete
</a>
</div>
</div>
<!-- End Datatable Info -->
</div>
</div>
</div>
<!-- End Header -->
<!-- Table -->
<div class="table-responsive datatable-custom">
<table class="js-datatable-checkboxes table table-lg table-borderless table-thead-bordered table-nowrap table-align-middle card-table"
data-hs-datatables-options='{
"columnDefs": [{
"targets": [0],
"orderable": false
}],
"order": []
}'>
<thead class="thead-light">
<tr>
<th class="table-column-pe-0">
<div class="form-check">
<input type="checkbox" class="form-check-input" id="datatableWithCheckboxSelectAll">
<label class="form-check-label" for="datatableWithCheckboxSelectAll"></label>
</div>
</th>
<th class="table-column-ps-0">Name</th>
<th>Position</th>
<th>Country</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<tr>
<td class="table-column-pe-0">
<div class="form-check">
<input type="checkbox" class="form-check-input" id="usersDataCheck1">
<label class="form-check-label" for="usersDataCheck1"></label>
</div>
</td>
<td class="table-column-ps-0">
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img10.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Amanda Harvey <i class="bi-patch-check-fill text-primary" data-toggle="tooltip" data-bs-placement="top" title="Top endorsed"></i></span>
<span class="d-block fs-5 text-body">amanda@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Director</span>
<span class="d-block fs-5">Human resources</span>
</td>
<td>United Kingdom</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td class="table-column-pe-0">
<div class="form-check">
<input type="checkbox" class="form-check-input" id="usersDataCheck2">
<label class="form-check-label" for="usersDataCheck2"></label>
</div>
</td>
<td class="table-column-ps-0">
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">A</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Anne Richard</span>
<span class="d-block fs-5 text-body">anne@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Seller</span>
<span class="d-block fs-5">Branding products</span>
</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td class="table-column-pe-0">
<div class="form-check">
<input type="checkbox" class="form-check-input" id="usersDataCheck3">
<label class="form-check-label" for="usersDataCheck3"></label>
</div>
</td>
<td class="table-column-ps-0">
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img3.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">David Harrison</span>
<span class="d-block fs-5 text-body">david@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block fs-5">Unknown</span>
</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td class="table-column-pe-0">
<div class="form-check">
<input type="checkbox" class="form-check-input" id="usersDataCheck4">
<label class="form-check-label" for="usersDataCheck4"></label>
</div>
</td>
<td class="table-column-ps-0">
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img5.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Finch Hoot</span>
<span class="d-block fs-5 text-body">finch@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Designer</span>
<span class="d-block fs-5">IT department</span>
</td>
<td>Argentina</td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td class="table-column-pe-0">
<div class="form-check">
<input type="checkbox" class="form-check-input" id="usersDataCheck5">
<label class="form-check-label" for="usersDataCheck5"></label>
</div>
</td>
<td class="table-column-ps-0">
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">B</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Bob Dean</span>
<span class="d-block fs-5 text-body">bob@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Executive director</span>
<span class="d-block fs-5">Marketing</span>
</td>
<td>Austria</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
</tbody>
</table>
</div>
<!-- End Table -->
</div>
<link rel="stylesheet" href="../node_modules/tom-select/dist/css/tom-select.bootstrap5.css">
<!-- JS Implementing Plugins -->
<script src="../assets/vendor/datatables.net.extensions/select/select.min.js"></script>
<!-- JS Front -->
<script src="../assets/js/hs.datatables.js">
<script>
(function () {
// INITIALIZATION OF DATATABLES
// =======================================================
HSCore.components.HSDatatables.init('.js-datatable-checkboxes', {
select: {
style: 'multi',
selector: 'td:first-child input[type="checkbox"]',
classMap: {
checkAll: '#datatableWithCheckboxSelectAll',
counter: '#datatableWithCheckboxSelectCounter',
counterInfo: '#datatableWithCheckboxSelectCounterInfo'
}
}
})
})()
</script>
Column search
Users
Name | Position | Country | Status |
---|---|---|---|
|
|||
Amanda Harvey amanda@example.com | Director Human resources | United Kingdom | Active |
Anne Richard anne@example.com | Seller Branding products | United States | Pending |
David Harrison david@example.com | Unknown Unknown | United States | Active |
Finch Hoot finch@example.com | Designer IT department | Argentina | Suspended |
Bob Dean bob@example.com | Executive director Marketing | Austria | Active |
Ella Lauda ella@example.com | Co-founder All departments | United Kingdom | Active |
<div class="table-responsive datatable-custom">
<table id="datatableColumnSearch" class="js-datatable table table-borderless table-thead-bordered table-nowrap table-align-middle card-table"
data-hs-datatables-options='{
"order": [],
"orderCellsTop": true
}'>
<thead class="thead-light">
<tr>
<th>Name</th>
<th>Position</th>
<th>Country</th>
<th>Status</th>
</tr>
<tr>
<th>
<input type="text" id="column1_search" class="form-control form-control-sm" placeholder="Search names">
</th>
<th>
<input type="text" id="column2_search" class="form-control form-control-sm" placeholder="Search positions">
</th>
<th>
<input type="text" id="column3_search" class="form-control form-control-sm" placeholder="Search countries">
</th>
<th>
<div class="tom-select-custom">
<select class="js-select js-datatable-filter form-select form-select-sm form-select-borderless" autocomplete="off"
data-target-column-index="3"
data-target-table="datatableColumnSearch"
data-hs-tom-select-options='{
"searchInDropdown": false,
"hideSearch": true,
"dropdownWidth": "10rem"
}'>
<option value="null" selected>Any</option>
<option value="Active">Active</option>
<option value="Pending">Pending</option>
<option value="Suspended">Suspended</option>
</select>
</div>
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<span class="d-block h5 text-hover-primary mb-0">Amanda Harvey <i class="bi-patch-check-fill text-primary" data-toggle="tooltip" data-bs-placement="top" title="Top endorsed"></i></span>
<span class="d-block fs-5 text-body">amanda@example.com</span>
</td>
<td>
<span class="d-block h5 mb-0">Director</span>
<span class="d-block fs-5">Human resources</span>
</td>
<td>United Kingdom</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<span class="d-block h5 text-hover-primary mb-0">Anne Richard</span>
<span class="d-block fs-5 text-body">anne@example.com</span>
</td>
<td>
<span class="d-block h5 mb-0">Seller</span>
<span class="d-block fs-5">Branding products</span>
</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<span class="d-block h5 text-hover-primary mb-0">David Harrison</span>
<span class="d-block fs-5 text-body">david@example.com</span>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block fs-5">Unknown</span>
</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<span class="d-block h5 text-hover-primary mb-0">Finch Hoot</span>
<span class="d-block fs-5 text-body">finch@example.com</span>
</td>
<td>
<span class="d-block h5 mb-0">Designer</span>
<span class="d-block fs-5">IT department</span>
</td>
<td>Argentina</td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<span class="d-block h5 text-hover-primary mb-0">Bob Dean</span>
<span class="d-block fs-5 text-body">bob@example.com</span>
</td>
<td>
<span class="d-block h5 mb-0">Executive director</span>
<span class="d-block fs-5">Marketing</span>
</td>
<td>Austria</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<span class="d-block h5 text-hover-primary mb-0">Ella Lauda <i class="bi-patch-check-fill text-primary" data-toggle="tooltip" data-bs-placement="top" title="Top endorsed"></i></span>
<span class="d-block fs-5 text-body">ella@example.com</span>
</td>
<td>
<span class="d-block h5 mb-0">Co-founder</span>
<span class="d-block fs-5">All departments</span>
</td>
<td>United Kingdom</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
</tbody>
</table>
</div>
<link rel="stylesheet" href="../node_modules/tom-select/dist/css/tom-select.bootstrap5.css">
<!-- JS Implementing Plugins -->
<script src="../assets/vendor/datatables.net.extensions/select/select.min.js"></script>
<!-- JS Front -->
<script src="../assets/js/hs.datatables.js">
<script>
(function () {
// INITIALIZATION OF SELECT
// =======================================================
HSCore.components.HSTomSelect.init('.js-select')
// INITIALIZATION OF DATATABLES
// =======================================================
HSCore.components.HSDatatables.init('.js-datatable')
const datatableColumnSearch = HSCore.components.HSDatatables.getItem('datatableColumnSearch')
document.getElementById('column1_search').addEventListener('keyup', function () {
datatableColumnSearch
.columns(0)
.search(this.value)
.draw()
})
document.getElementById('column2_search').addEventListener('keyup', function () {
datatableColumnSearch
.columns(1)
.search(this.value)
.draw()
})
document.getElementById('column3_search').addEventListener('keyup', function () {
datatableColumnSearch
.columns(2)
.search(this.value)
.draw()
})
document.querySelectorAll('.js-datatable-filter').forEach(function (item) {
item.addEventListener('change', function(e) {
const elVal = e.target.value,
targetColumnIndex = e.target.getAttribute('data-target-column-index'),
targetTable = e.target.getAttribute('data-target-table');
HSCore.components.HSDatatables.getItem(targetTable).column(targetColumnIndex).search(elVal !== 'null' ? elVal : '').draw()
})
})
})()
</script>
Date picker filter
This example uses Date range picker library.
Users
Name | Created at | Country | Status |
---|---|---|---|
Amanda Harvey
amanda@example.com
|
25/07/2020 | United Kingdom | Active |
A
Anne Richard
anne@example.com
|
12/01/2019 | United States | Pending |
David Harrison
david@example.com
|
29/03/2020 | United States | Active |
Finch Hoot
finch@example.com
|
28/11/2018 | Argentina | Suspended |
B
Bob Dean
bob@example.com
|
02/12/2020 | Austria | Active |
Ella Lauda
ella@example.com
|
06/08/2020 | United Kingdom | Active |
L
Lori Hunter
hunter@example.com
|
14/10/2019 | Estonia | Active |
M
Mark Colbert
mark@example.com
|
15/09/2019 | Canada | Active |
Costa Quinn
costa@example.com
|
13/12/2018 | France | Pending |
R
Rachel Doe
rachel@example.com
|
19/12/2018 | United States | Active |
Linda Bates
linda@example.com
|
2013/03/03 | United Kingdom | Suspended |
B
Brian Halligan
brian@example.com
|
16/10/2018 | France | Active |
C
Chris Mathew
chris@example.com
|
18/12/2020 | Switzerland | Pending |
Clarice Boone
clarice@example.com
|
17/03/2019 | United Kingdom | Active |
L
Lewis Clarke
lewis@example.com
|
27/11/2020 | Switzerland | Pending |
Sam Kart
sam@example.com
|
09/06/2019 | Canada | Pending |
J
Johnny Appleseed
johnny@example.com
|
10/04/2019 | United States | Active |
P
Phileas Fogg
phileas@example.com
|
13/10/2020 | Spain | Suspended |
Mark Williams
mark@example.com
|
26/09/2020 | United Kingdom | Active |
T
Timothy Silva
timothy@example.com
|
03/09/2020 | Italy | Pending |
G
Gary Bishop
gary@example.com
|
25/06/2019 | Latvia | Active |
Y
Yorker Scogings
yorker@example.com
|
12/12/2020 | Norway | Suspended |
F
Frank Phillips
frank@example.com
|
20/09/2019 | Norway | Suspended |
E
Elizabeth Carter
eliz@example.com
|
09/10/2019 | United States | Pending |
<div class="card">
<div class="card-header">
<div class="row align-items-center flex-grow-1">
<div class="col-sm-6 mb-2 mb-sm-0">
<h4 class="card-header-title">Users</h4>
</div>
<div class="col-sm-6">
<!-- Daterangepicker -->
<input type="text" class="js-daterangepicker form-control daterangepicker-custom-input" placeholder="Select dates"
data-hs-daterangepicker-options='{
"autoUpdateInput": false,
"locale": {
"cancelLabel": "Clear"
}
}'>
<!-- End Daterangepicker -->
</div>
</div>
<!-- End Row -->
</div>
<!-- Table -->
<div class="table-responsive datatable-custom">
<table id="datatableDatepickerFilter" class="js-datatable table table-borderless table-thead-bordered table-nowrap table-align-middle card-table"
data-hs-datatables-options='{
"order": [],
"isResponsive": false,
"isShowPaging": false,
"pagination": "datatableDatepickerFilterPagination"
}'>
<thead class="thead-light">
<tr>
<th>Name</th>
<th>Created at</th>
<th>Country</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img10.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Amanda Harvey <i class="bi-patch-check-fill text-primary" data-toggle="tooltip" data-bs-placement="top" title="Top endorsed"></i></span>
<span class="d-block fs-5 text-body">amanda@example.com</span>
</div>
</a>
</td>
<td>25/07/2020</td>
<td>United Kingdom</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">A</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Anne Richard</span>
<span class="d-block fs-5 text-body">anne@example.com</span>
</div>
</a>
</td>
<td>12/01/2019</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img3.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">David Harrison</span>
<span class="d-block fs-5 text-body">david@example.com</span>
</div>
</a>
</td>
<td>29/03/2020</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img5.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Finch Hoot</span>
<span class="d-block fs-5 text-body">finch@example.com</span>
</div>
</a>
</td>
<td>28/11/2018</td>
<td>Argentina</td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">B</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Bob Dean</span>
<span class="d-block fs-5 text-body">bob@example.com</span>
</div>
</a>
</td>
<td>02/12/2020</td>
<td>Austria</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img9.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Ella Lauda <i class="bi-patch-check-fill text-primary" data-toggle="tooltip" data-bs-placement="top" title="Top endorsed"></i></span>
<span class="d-block fs-5 text-body">ella@example.com</span>
</div>
</a>
</td>
<td>06/08/2020</td>
<td>United Kingdom</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">L</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Lori Hunter</span>
<span class="d-block fs-5 text-body">hunter@example.com</span>
</div>
</a>
</td>
<td>14/10/2019</td>
<td>Estonia</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">M</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Mark Colbert</span>
<span class="d-block fs-5 text-body">mark@example.com</span>
</div>
</a>
</td>
<td>15/09/2019</td>
<td>Canada</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img6.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Costa Quinn</span>
<span class="d-block fs-5 text-body">costa@example.com</span>
</div>
</a>
</td>
<td>13/12/2018</td>
<td>France</td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">R</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Rachel Doe <i class="bi-patch-check-fill text-primary" data-toggle="tooltip" data-bs-placement="top" title="Top endorsed"></i></span>
<span class="d-block fs-5 text-body">rachel@example.com</span>
</div>
</a>
</td>
<td>19/12/2018</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img8.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Linda Bates</span>
<span class="d-block fs-5 text-body">linda@example.com</span>
</div>
</a>
</td>
<td>2013/03/03</td>
<td>United Kingdom</td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">B</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Brian Halligan</span>
<span class="d-block fs-5 text-body">brian@example.com</span>
</div>
</a>
</td>
<td>16/10/2018</td>
<td>France</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">C</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Chris Mathew</span>
<span class="d-block fs-5 text-body">chris@example.com</span>
</div>
</a>
</td>
<td>18/12/2020</td>
<td>Switzerland</td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img7.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Clarice Boone <i class="bi-patch-check-fill text-primary" data-toggle="tooltip" data-bs-placement="top" title="Top endorsed"></i></span>
<span class="d-block fs-5 text-body">clarice@example.com</span>
</div>
</a>
</td>
<td>17/03/2019</td>
<td>United Kingdom</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">L</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Lewis Clarke</span>
<span class="d-block fs-5 text-body">lewis@example.com</span>
</div>
</a>
</td>
<td>27/11/2020</td>
<td>Switzerland</td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img4.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Sam Kart</span>
<span class="d-block fs-5 text-body">sam@example.com</span>
</div>
</a>
</td>
<td>09/06/2019</td>
<td>Canada</td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">J</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Johnny Appleseed</span>
<span class="d-block fs-5 text-body">johnny@example.com</span>
</div>
</a>
</td>
<td>10/04/2019</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">P</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Phileas Fogg</span>
<span class="d-block fs-5 text-body">phileas@example.com</span>
</div>
</a>
</td>
<td>13/10/2020</td>
<td>Spain</td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img6.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Mark Williams <i class="bi-patch-check-fill text-primary" data-toggle="tooltip" data-bs-placement="top" title="Top endorsed"></i></span>
<span class="d-block fs-5 text-body">mark@example.com</span>
</div>
</a>
</td>
<td>26/09/2020</td>
<td>United Kingdom</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">T</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Timothy Silva</span>
<span class="d-block fs-5 text-body">timothy@example.com</span>
</div>
</a>
</td>
<td>03/09/2020</td>
<td>Italy</td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">G</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Gary Bishop <i class="bi-patch-check-fill text-primary" data-toggle="tooltip" data-bs-placement="top" title="Top endorsed"></i></span>
<span class="d-block fs-5 text-body">gary@example.com</span>
</div>
</a>
</td>
<td>25/06/2019</td>
<td>Latvia</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">Y</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Yorker Scogings</span>
<span class="d-block fs-5 text-body">yorker@example.com</span>
</div>
</a>
</td>
<td>12/12/2020</td>
<td>Norway</td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">F</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Frank Phillips</span>
<span class="d-block fs-5 text-body">frank@example.com</span>
</div>
</a>
</td>
<td>20/09/2019</td>
<td>Norway</td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">E</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Elizabeth Carter</span>
<span class="d-block fs-5 text-body">eliz@example.com</span>
</div>
</a>
</td>
<td>09/10/2019</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
</tbody>
</table>
</div>
<!-- End Table -->
<!-- Footer -->
<div class="card-footer">
<!-- Pagination -->
<div class="d-flex justify-content-center justify-content-sm-end">
<nav id="datatableDatepickerFilterPagination" aria-label="Activity pagination"></nav>
</div>
<!-- End Pagination -->
</div>
<!-- End Footer -->
</div>
<link rel="stylesheet" href="../node_modules/daterangepicker/daterangepicker.css">
<!-- JS Implementing Plugins -->
<script src="../node_modules/daterangepicker/moment.min.js"></script>
<script src="../node_modules/daterangepicker/daterangepicker.js"></script>
<!-- JS Front -->
<script src="../assets/js/hs.daterangepicker.js"></script>
<script>
(function () {
// INITIALIZATION OF DATATABLES
// =======================================================
HSCore.components.HSDatatables.init('.js-datatable')
const datatableDatepickerFilter = HSCore.components.HSDatatables.getItem('datatableDatepickerFilter')
HSCore.components.HSDaterangepicker.init('.js-daterangepicker')
const daterangepicker = HSCore.components.HSDaterangepicker.getItem(0)
var startDate = null,
endDate = null
daterangepicker.on('apply.daterangepicker', function (ev, picker) {
this.value = picker.startDate.format('MM/DD/YYYY') + ' - ' + picker.endDate.format('MM/DD/YYYY')
startDate = moment(picker.startDate.format('MM/DD/YYYY'))
endDate = moment(picker.endDate.format('MM/DD/YYYY'))
datatableDatepickerFilter.draw()
})
daterangepicker.on('cancel.daterangepicker', function (ev, picker) {
this.value = ''
startDate = null
endDate = null
datatableDatepickerFilter.draw()
})
$.fn.dataTable.ext.search.push(
function (settings, data, dataIndex) {
if (!startDate || !endDate) return true
let compareDate = moment(moment(data[4]).format('MM/DD/YYYY'))
return compareDate.isBetween(startDate, endDate)
}
)
})()
</script>
Column show/hide
Users
Name | Position | Country | Status |
---|---|---|---|
Amanda Harvey
amanda@example.com
|
Director Human resources | United Kingdom | Active |
A
Anne Richard
anne@example.com
|
Seller Branding products | United States | Pending |
David Harrison
david@example.com
|
Unknown Unknown | United States | Active |
Finch Hoot
finch@example.com
|
Designer IT department | Argentina | Suspended |
B
Bob Dean
bob@example.com
|
Executive director Marketing | Austria | Active |
<div class="card">
<div class="card-header">
<div class="row justify-content-between align-items-center flex-grow-1">
<div class="col-md">
<h4 class="card-header-title">Users</h4>
</div>
<div class="col-auto">
<!-- Dropdown -->
<div class="dropdown">
<button class="btn btn-ghost-secondary" type="button" id="dropdownMenuButtonGhostPrimary" data-bs-toggle="dropdown" aria-expanded="false">
<i class="bi bi-table"></i>
</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButtonGhostPrimary">
<div class="d-flex align-items-center justify-content-between form-check form-switch form-switch-between mb-3">
<label class="form-check-label">Country</label>
<input type="checkbox" id="toggleColumn_country" class="form-check-input" checked>
</div>
<div class="d-flex align-items-center justify-content-between form-check form-switch form-switch-between mb-3">
<label class="form-check-label">Position</label>
<input type="checkbox" id="toggleColumn_position" class="form-check-input" checked>
</div>
<div class="d-flex align-items-center justify-content-between form-check form-switch form-switch-between">
<label class="form-check-label">Status</label>
<input type="checkbox" id="toggleColumn_status" class="form-check-input" checked>
</div>
</div>
</div>
<!-- End Dropdown -->
</div>
</div>
</div>
<!-- Table -->
<div class="table-responsive datatable-custom">
<table id="columnSorting" class="js-datatable table table-borderless table-thead-bordered table-nowrap table-align-middle card-table"
data-hs-datatables-options='{
"order": []
}'>
<thead class="thead-light">
<tr>
<th>Name</th>
<th>Position</th>
<th>Country</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img10.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Amanda Harvey <i class="bi-patch-check-fill text-primary" data-toggle="tooltip" data-bs-placement="top" title="Top endorsed"></i></span>
<span class="d-block fs-5 text-body">amanda@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Director</span>
<span class="d-block fs-5">Human resources</span>
</td>
<td>United Kingdom</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">A</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Anne Richard</span>
<span class="d-block fs-5 text-body">anne@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Seller</span>
<span class="d-block fs-5">Branding products</span>
</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img3.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">David Harrison</span>
<span class="d-block fs-5 text-body">david@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block fs-5">Unknown</span>
</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img5.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Finch Hoot</span>
<span class="d-block fs-5 text-body">finch@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Designer</span>
<span class="d-block fs-5">IT department</span>
</td>
<td>Argentina</td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">B</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Bob Dean</span>
<span class="d-block fs-5 text-body">bob@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Executive director</span>
<span class="d-block fs-5">Marketing</span>
</td>
<td>Austria</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
</tbody>
</table>
</div>
<!-- End Table -->
</div>
<script>
(function () {
// INITIALIZATION OF DATATABLES
// =======================================================
HSCore.components.HSDatatables.init('.js-datatable')
const datatableSortingColumn = HSCore.components.HSDatatables.getItem('columnSorting')
document.getElementById('toggleColumn_position').addEventListener('change', function (e) {
datatableSortingColumn.columns(1).visible(e.target.checked)
})
document.getElementById('toggleColumn_country').addEventListener('change', function (e) {
datatableSortingColumn.columns(2).visible(e.target.checked)
})
document.getElementById('toggleColumn_status').addEventListener('change', function (e) {
datatableSortingColumn.columns(3).visible(e.target.checked)
})
})()
</script>
Drag' n' drop
This example uses SortableJS library.
Users
Name | Position | Country | Status | |
---|---|---|---|---|
Amanda Harvey
amanda@example.com
|
Director Human resources | United Kingdom | Active | |
A
Anne Richard
anne@example.com
|
Seller Branding products | United States | Pending | |
David Harrison
david@example.com
|
Unknown Unknown | United States | Active | |
Finch Hoot
finch@example.com
|
Designer IT department | Argentina | Suspended | |
B
Bob Dean
bob@example.com
|
Executive director Marketing | Austria | Active |
<div class="table-responsive datatable-custom">
<table class="js-datatable table table-borderless table-thead-bordered table-nowrap table-align-middle card-table"
data-hs-datatables-options='{
"columnDefs": [{
"targets": [0],
"orderable": false
}],
"order": []
}'>
<thead class="thead-light">
<tr>
<th></th>
<th>Name</th>
<th>Position</th>
<th>Country</th>
<th>Status</th>
</tr>
</thead>
<tbody class="js-sortable" data-hs-sortable-options='{
"animation": 150,
"handle": ".sortablejs-custom-handle"
}'>
<tr>
<td class="table-column-pe-0">
<i class="sortablejs-custom-handle bi bi-grip-vertical"></i>
</td>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img10.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Amanda Harvey <i class="bi-patch-check-fill text-primary" data-toggle="tooltip" data-bs-placement="top" title="Top endorsed"></i></span>
<span class="d-block fs-5 text-body">amanda@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Director</span>
<span class="d-block fs-5">Human resources</span>
</td>
<td>United Kingdom</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td class="table-column-pe-0">
<i class="sortablejs-custom-handle bi bi-grip-vertical"></i>
</td>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">A</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Anne Richard</span>
<span class="d-block fs-5 text-body">anne@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Seller</span>
<span class="d-block fs-5">Branding products</span>
</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td class="table-column-pe-0">
<i class="sortablejs-custom-handle bi bi-grip-vertical"></i>
</td>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img3.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">David Harrison</span>
<span class="d-block fs-5 text-body">david@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block fs-5">Unknown</span>
</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td class="table-column-pe-0">
<i class="sortablejs-custom-handle bi bi-grip-vertical"></i>
</td>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img5.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Finch Hoot</span>
<span class="d-block fs-5 text-body">finch@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Designer</span>
<span class="d-block fs-5">IT department</span>
</td>
<td>Argentina</td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td class="table-column-pe-0">
<i class="sortablejs-custom-handle bi bi-grip-vertical"></i>
</td>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">B</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Bob Dean</span>
<span class="d-block fs-5 text-body">bob@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Executive director</span>
<span class="d-block fs-5">Marketing</span>
</td>
<td>Austria</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
</tbody>
</table>
</div>
<!-- JS Implementing Plugins -->
<script src="../node_modules/sortablejs/Sortable.min.js"></script>
<!-- JS Front -->
<script src="../assets/js/hs.sortable.js"></script>
<script>
(function () {
// INITIALIZATION OF SORTABLE
// =======================================================
HSCore.components.HSSortable.init('.js-sortable')
// INITIALIZATION OF DATATABLES
// =======================================================
HSCore.components.HSDatatables.init('.js-datatable')
})()
</script>
Export options
Name | Position | Country | Status |
---|---|---|---|
Amanda Harvey
amanda@example.com
|
Director Human resources | United Kingdom | Active |
A
Anne Richard
anne@example.com
|
Seller Branding products | United States | Pending |
David Harrison
david@example.com
|
Unknown Unknown | United States | Active |
Finch Hoot
finch@example.com
|
Designer IT department | Argentina | Suspended |
B
Bob Dean
bob@example.com
|
Executive director Marketing | Austria | Active |
<div class="card">
<div class="card-header">
<div class="row justify-content-between align-items-center flex-grow-1">
<div class="col-md">
<h4 class="card-header-title">Users</h4>
</div>
<div class="col-auto">
<!-- Dropdown -->
<div class="dropdown me-2">
<button type="button" class="btn btn-white btn-sm dropdown-toggle" id="usersExportDropdown" data-bs-toggle="dropdown" aria-expanded="false">
<i class="bi-download me-2"></i> Export
</button>
<div class="dropdown-menu dropdown-menu-sm-end" aria-labelledby="usersExportDropdown">
<span class="dropdown-header">Options</span>
<a id="export-copy" class="dropdown-item" href="javascript:;">
<img class="avatar avatar-xss avatar-4x3 me-2" src="../assets/svg/illustrations/copy-icon.svg" alt="Image Description">
Copy
</a>
<a id="export-print" class="dropdown-item" href="javascript:;">
<img class="avatar avatar-xss avatar-4x3 me-2" src="../assets/svg/illustrations/print-icon.svg" alt="Image Description">
Print
</a>
<div class="dropdown-divider"></div>
<span class="dropdown-header">Download options</span>
<a id="export-excel" class="dropdown-item" href="javascript:;">
<img class="avatar avatar-xss avatar-4x3 me-2" src="../assets/svg/brands/excel-icon.svg" alt="Image Description">
Excel
</a>
<a id="export-csv" class="dropdown-item" href="javascript:;">
<img class="avatar avatar-xss avatar-4x3 me-2" src="../assets/svg/components/placeholder-csv-format.svg" alt="Image Description">
.CSV
</a>
<a id="export-pdf" class="dropdown-item" href="javascript:;">
<img class="avatar avatar-xss avatar-4x3 me-2" src="../assets/svg/brands/pdf-icon.svg" alt="Image Description">
PDF
</a>
</div>
</div>
<!-- End Dropdown -->
</div>
</div>
</div>
<!-- Table -->
<div class="table-responsive datatable-custom">
<table id="exportDatatable" class="js-datatable table table-borderless table-thead-bordered table-nowrap table-align-middle card-table"
data-hs-datatables-options='{
"dom": "Bfrtip",
"buttons": [
{
"extend": "copy",
"className": "d-none"
},
{
"extend": "excel",
"className": "d-none"
},
{
"extend": "csv",
"className": "d-none"
},
{
"extend": "pdf",
"className": "d-none"
},
{
"extend": "print",
"className": "d-none"
}
],
"order": []
}'>
<thead class="thead-light">
<tr>
<th>Name</th>
<th>Position</th>
<th>Country</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img10.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Amanda Harvey <i class="bi-patch-check-fill text-primary" data-toggle="tooltip" data-bs-placement="top" title="Top endorsed"></i></span>
<span class="d-block fs-5 text-body">amanda@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Director</span>
<span class="d-block fs-5">Human resources</span>
</td>
<td>United Kingdom</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">A</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Anne Richard</span>
<span class="d-block fs-5 text-body">anne@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Seller</span>
<span class="d-block fs-5">Branding products</span>
</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img3.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">David Harrison</span>
<span class="d-block fs-5 text-body">david@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block fs-5">Unknown</span>
</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img5.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Finch Hoot</span>
<span class="d-block fs-5 text-body">finch@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Designer</span>
<span class="d-block fs-5">IT department</span>
</td>
<td>Argentina</td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">B</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Bob Dean</span>
<span class="d-block fs-5 text-body">bob@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Executive director</span>
<span class="d-block fs-5">Marketing</span>
</td>
<td>Austria</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
</tbody>
</table>
</div>
<!-- End Table -->
</div>
<!-- JS Implementing Plugins -->
<script src="../node_modules/jszip/dist/jszip.min.js"></script>
<script src="../node_modules/pdfmake/build/pdfmake.min.js"></script>
<script src="../node_modules/pdfmake/build/vfs_fonts.js"></script>
<script src="../node_modules/datatables.net-buttons/js/buttons.html5.min.js"></script>
<script src="../node_modules/datatables.net-buttons/js/buttons.print.min.js"></script>
<script src="../node_modules/datatables.net-buttons/js/buttons.colVis.min.js"></script>
<script>
(function () {
// INITIALIZATION OF DATATABLES
// =======================================================
HSCore.components.HSDatatables.init('.js-datatable')
const exportDatatable = HSCore.components.HSDatatables.getItem('exportDatatable')
document.getElementById('export-copy').addEventListener('click', function () {
exportDatatable.button('.buttons-copy').trigger()
})
document.getElementById('export-excel').addEventListener('click', function () {
exportDatatable.button('.buttons-excel').trigger()
})
document.getElementById('export-csv').addEventListener('click', function () {
exportDatatable.button('.buttons-csv').trigger()
})
document.getElementById('export-pdf').addEventListener('click', function () {
exportDatatable.button('.buttons-pdf').trigger()
})
document.getElementById('export-print').addEventListener('click', function () {
exportDatatable.button('.buttons-print').trigger()
})
})()
</script>
Column fixed
Users
Name | Position | Country | Status | Position | Country | Status | Country | Status | Position | Country | Status |
---|---|---|---|---|---|---|---|---|---|---|---|
Amanda Harvey
amanda@example.com
|
Director Human resources | United Kingdom | Active | Director Human resources | United Kingdom | Active | United Kingdom | Active | Director Human resources | United Kingdom | Active |
A
Anne Richard
anne@example.com
|
Seller Branding products | United States | Pending | Seller Branding products | United States | Pending | United States | Pending | Seller Branding products | United States | Pending |
David Harrison
david@example.com
|
Unknown Unknown | United States | Active | Unknown Unknown | United States | Active | United States | Active | Unknown Unknown | United States | Active |
Finch Hoot
finch@example.com
|
Designer IT department | Argentina | Suspended | Designer IT department | Argentina | Suspended | Argentina | Suspended | Designer IT department | Argentina | Suspended |
B
Bob Dean
bob@example.com
|
Executive director Marketing | Austria | Active | Executive director Marketing | Austria | Active | Austria | Active | Executive director Marketing | Austria | Active |
<div class="table-responsive datatable-custom datatable-custom-centered">
<table class="js-datatable table table-borderless table-thead-bordered table-nowrap table-align-middle card-table"
data-hs-datatables-options='{
"scrolly": true,
"scrollX": true,
"scrollCollapse": true,
"paging": false,
"fixedColumns": true,
"order": []
}'>
<thead class="thead-light">
<tr>
<th>Name</th>
<th>Position</th>
<th>Country</th>
<th>Status</th>
<th>Position</th>
<th>Country</th>
<th>Status</th>
<th>Country</th>
<th>Status</th>
<th>Position</th>
<th>Country</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<tr>
<td class="bg-white">
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img10.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Amanda Harvey <i class="bi-patch-check-fill text-primary" data-toggle="tooltip" data-bs-placement="top" title="Top endorsed"></i></span>
<span class="d-block fs-5 text-body">amanda@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Director</span>
<span class="d-block fs-5">Human resources</span>
</td>
<td>United Kingdom</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
<td>
<span class="d-block h5 mb-0">Director</span>
<span class="d-block fs-5">Human resources</span>
</td>
<td>United Kingdom</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
<td>United Kingdom</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
<td>
<span class="d-block h5 mb-0">Director</span>
<span class="d-block fs-5">Human resources</span>
</td>
<td>United Kingdom</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td class="bg-white">
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">A</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Anne Richard</span>
<span class="d-block fs-5 text-body">anne@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Seller</span>
<span class="d-block fs-5">Branding products</span>
</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
<td>
<span class="d-block h5 mb-0">Seller</span>
<span class="d-block fs-5">Branding products</span>
</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
<td>
<span class="d-block h5 mb-0">Seller</span>
<span class="d-block fs-5">Branding products</span>
</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td class="bg-white">
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img3.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">David Harrison</span>
<span class="d-block fs-5 text-body">david@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block fs-5">Unknown</span>
</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block fs-5">Unknown</span>
</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block fs-5">Unknown</span>
</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td class="bg-white">
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img5.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Finch Hoot</span>
<span class="d-block fs-5 text-body">finch@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Designer</span>
<span class="d-block fs-5">IT department</span>
</td>
<td>Argentina</td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
<td>
<span class="d-block h5 mb-0">Designer</span>
<span class="d-block fs-5">IT department</span>
</td>
<td>Argentina</td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
<td>Argentina</td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
<td>
<span class="d-block h5 mb-0">Designer</span>
<span class="d-block fs-5">IT department</span>
</td>
<td>Argentina</td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td class="bg-white">
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">B</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Bob Dean</span>
<span class="d-block fs-5 text-body">bob@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Executive director</span>
<span class="d-block fs-5">Marketing</span>
</td>
<td>Austria</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
<td>
<span class="d-block h5 mb-0">Executive director</span>
<span class="d-block fs-5">Marketing</span>
</td>
<td>Austria</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
<td>Austria</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
<td>
<span class="d-block h5 mb-0">Executive director</span>
<span class="d-block fs-5">Marketing</span>
</td>
<td>Austria</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
</tbody>
</table>
</div>
<link rel="stylesheet" href="../assets/vendor/datatables.net.extensions/fixedColumns.dataTables.min.css">
<script src="../assets/vendor/datatables.net.extensions/dataTables.fixedColumns.min.js"></script>
Header with fixed height
Users
Name | Position | Country | Status |
---|---|---|---|
Amanda Harvey
amanda@example.com
|
Director Human resources | United Kingdom | Active |
A
Anne Richard
anne@example.com
|
Seller Branding products | United States | Pending |
David Harrison
david@example.com
|
Unknown Unknown | United States | Active |
Finch Hoot
finch@example.com
|
Designer IT department | Argentina | Suspended |
B
Bob Dean
bob@example.com
|
Executive director Marketing | Austria | Active |
Amanda Harvey
amanda@example.com
|
Director Human resources | United Kingdom | Active |
A
Anne Richard
anne@example.com
|
Seller Branding products | United States | Pending |
David Harrison
david@example.com
|
Unknown Unknown | United States | Active |
Finch Hoot
finch@example.com
|
Designer IT department | Argentina | Suspended |
B
Bob Dean
bob@example.com
|
Executive director Marketing | Austria | Active |
<div class="table-responsive datatable-custom">
<table class="js-datatable table table-borderless table-thead-bordered table-nowrap table-align-middle card-table"
data-hs-datatables-options='{
"scrollY": 300,
"paging": false,
"order": []
}'>
<thead class="thead-light">
<tr>
<th>Name</th>
<th>Position</th>
<th>Country</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img10.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Amanda Harvey <i class="bi-patch-check-fill text-primary" data-toggle="tooltip" data-bs-placement="top" title="Top endorsed"></i></span>
<span class="d-block fs-5 text-body">amanda@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Director</span>
<span class="d-block fs-5">Human resources</span>
</td>
<td>United Kingdom</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">A</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Anne Richard</span>
<span class="d-block fs-5 text-body">anne@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Seller</span>
<span class="d-block fs-5">Branding products</span>
</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img3.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">David Harrison</span>
<span class="d-block fs-5 text-body">david@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block fs-5">Unknown</span>
</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img5.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Finch Hoot</span>
<span class="d-block fs-5 text-body">finch@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Designer</span>
<span class="d-block fs-5">IT department</span>
</td>
<td>Argentina</td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">B</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Bob Dean</span>
<span class="d-block fs-5 text-body">bob@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Executive director</span>
<span class="d-block fs-5">Marketing</span>
</td>
<td>Austria</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img10.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Amanda Harvey <i class="bi-patch-check-fill text-primary" data-toggle="tooltip" data-bs-placement="top" title="Top endorsed"></i></span>
<span class="d-block fs-5 text-body">amanda@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Director</span>
<span class="d-block fs-5">Human resources</span>
</td>
<td>United Kingdom</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">A</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Anne Richard</span>
<span class="d-block fs-5 text-body">anne@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Seller</span>
<span class="d-block fs-5">Branding products</span>
</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img3.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">David Harrison</span>
<span class="d-block fs-5 text-body">david@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block fs-5">Unknown</span>
</td>
<td>United States</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle">
<img class="avatar-img" src="../assets/img/160x160/img5.jpg" alt="Image Description">
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Finch Hoot</span>
<span class="d-block fs-5 text-body">finch@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Designer</span>
<span class="d-block fs-5">IT department</span>
</td>
<td>Argentina</td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="d-flex align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle">
<span class="avatar-initials">B</span>
</div>
<div class="ms-3">
<span class="d-block h5 text-inherit mb-0">Bob Dean</span>
<span class="d-block fs-5 text-body">bob@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Executive director</span>
<span class="d-block fs-5">Marketing</span>
</td>
<td>Austria</td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
</tbody>
</table>
</div>
Collapsible rows
Data
Name | Position | Office | Salary |
---|
<div class="table-responsive datatable-custom datatable-custom-collapsible">
<table id="datatableChildRows" class="display nowrap table table-borderless table-thead-bordered table-nowrap table-align-middle card-table">
<thead>
<tr>
<th></th>
<th>Name</th>
<th>Position</th>
<th>Office</th>
<th>Salary</th>
</tr>
</thead>
</table>
</div>
<script>
// INITIALIZATION OF DATATABLES
// =======================================================
const data = [
{
"id": "1",
"name": "Tiger Nixon",
"position": "System Architect",
"salary": "$320,800",
"start_date": "2011/04/25",
"office": "Edinburgh",
"extn": "5421"
},
{
"id": "2",
"name": "Garrett Winters",
"position": "Accountant",
"salary": "$170,750",
"start_date": "2011/07/25",
"office": "Tokyo",
"extn": "8422"
},
{
"id": "3",
"name": "Ashton Cox",
"position": "Junior Technical Author",
"salary": "$86,000",
"start_date": "2009/01/12",
"office": "San Francisco",
"extn": "1562"
},
{
"id": "4",
"name": "Cedric Kelly",
"position": "Senior Javascript Developer",
"salary": "$433,060",
"start_date": "2012/03/29",
"office": "Edinburgh",
"extn": "6224"
},
{
"id": "5",
"name": "Airi Satou",
"position": "Accountant",
"salary": "$162,700",
"start_date": "2008/11/28",
"office": "Tokyo",
"extn": "5407"
}
]
/* Formatting function for row details - modify as you need */
function format (d) {
// `d` is the original data object for the row
return '<table>'+
'<tr>'+
'<td>Full name:</td>'+
'<td>'+d.name+'</td>'+
'</tr>'+
'<tr>'+
'<td>Extension number:</td>'+
'<td>'+d.extn+'</td>'+
'</tr>'+
'<tr>'+
'<td>Extra info:</td>'+
'<td>And any further details here (images etc)...</td>'+
'</tr>'+
'</table>'
}
HSCore.components.HSDatatables.init('#datatableChildRows', {
"data": data,
"columns": [
{
"className": 'details-control',
"orderable": false,
"data": null,
"defaultContent": ''
},
{ "data": "name" },
{ "data": "position" },
{ "data": "office" },
{ "data": "salary" }
],
order: []
})
const datatableCollapasble = HSCore.components.HSDatatables.getItem('datatableChildRows')
// ADD EVENT LISTENER FOR OPENING AND CLOSING DETAILS
// =======================================================
document.querySelector('#datatableChildRows tbody').addEventListener('click', function (e) {
if (!e.target.closest('td.details-control')) return
const tr = e.target.closest('tr'),
row = datatableCollapasble.row(tr);
if (row.child.isShown()) {
// This row is already open - close it
row.child.hide()
tr.classList.remove('shown')
}
else {
// Open this row
row.child(format(row.data())).show()
tr.classList.add('shown')
}
})
</script>
Methods
Parameters | Description | Default value |
---|---|---|
paging |
Enable pagination. | true |
info.currentInterval |
Pages interval info template. | null |
info.divider |
Divider for current interval. Example: Showing 1 to 10 of 24 entries. |
"to" |
pagination |
Pagination template. | null |
paginationClasses |
Pagination class. | pagination |
paginationLinksClasses |
Pagination links classes. | page-link |
paginationItemsClasses |
Pagination items classes. | page-item |
paginationPrevLinkClasses |
Pagination previous class. | page-item |
paginationPrevLinkClasses |
Pagination previous link class. | page-link |
paginationNextClasses |
Pagination next class. | page-item |
paginationNextLinkClasses |
Pagination next link class. | page-link |
paginationPrevLinkMarkup |
Pagination previous template. | <span aria-hidden="true">Prev</span> |
paginationNextLinkMarkup |
Pagination next template. | <span aria-hidden="true">Next</span> |