Datatables
Showcase your latest works with a 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 stylesheet <link>
into your <head>
to load the CSS.
<script src="../node_modules/datatables/media/js/jquery.dataTables.min.js"></script>
Copy-paste the following <script>
near the end of your pages under JS Front to enable it.
<script src="../assets/js/hs.datatables.js"></script>
Copy-paste the init function under JS Plugins Init., before the closing </body>
tag, to enable it.
<script>
$(document).on('ready', function () {
// initialization of datatables
var datatable = $.HSCore.components.HSDatatables.init($('#datatable'));
});
</script>
Basic example
Users
Name | Position | Country | Status |
---|---|---|---|
Amanda Harvey
amanda@example.com
|
Director Human resources | United Kingdom Code: GB | Active |
A
Anne Richard
anne@example.com
|
Seller Branding products | United States Code: US | Pending |
David Harrison
david@example.com
|
Unknown Unknown | United States Code: US | Active |
Finch Hoot
finch@example.com
|
Designer IT department | Argentina Code: AR | Suspended |
B
Bob Dean
bob@example.com
|
Executive director Marketing | Austria Code: AT | Active |
<!-- Card -->
<div class="card">
<div class="card-header">
<h4 class="card-header-title">Users</h4>
</div>
<!-- Table -->
<div class="table-responsive datatable-custom">
<table id="basicDatatable" class="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="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img10.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Amanda Harvey <i class="tio-verified text-primary" data-toggle="tooltip" data-placement="top" title="Top endorsed"></i></span>
<span class="d-block font-size-sm text-body">amanda@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Director</span>
<span class="d-block font-size-sm">Human resources</span>
</td>
<td>United Kingdom <span class="text-hide">Code: GB</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle mr-3">
<span class="avatar-initials">A</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Anne Richard</span>
<span class="d-block font-size-sm text-body">anne@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Seller</span>
<span class="d-block font-size-sm">Branding products</span>
</td>
<td>United States <span class="text-hide">Code: US</span></td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img3.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">David Harrison</span>
<span class="d-block font-size-sm text-body">david@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block font-size-sm">Unknown</span>
</td>
<td>United States <span class="text-hide">Code: US</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img5.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Finch Hoot</span>
<span class="d-block font-size-sm text-body">finch@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Designer</span>
<span class="d-block font-size-sm">IT department</span>
</td>
<td>Argentina <span class="text-hide">Code: AR</span></td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-dark avatar-circle mr-3">
<span class="avatar-initials">B</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Bob Dean</span>
<span class="d-block font-size-sm text-body">bob@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Executive director</span>
<span class="d-block font-size-sm">Marketing</span>
</td>
<td>Austria <span class="text-hide">Code: AT</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
</tbody>
</table>
</div>
<!-- End Table -->
</div>
<!-- End Card -->
With pagination
Users
Name | Position | Country | Status |
---|---|---|---|
Amanda Harvey
amanda@example.com
|
Director Human resources | United Kingdom Code: GB | Active |
A
Anne Richard
anne@example.com
|
Seller Branding products | United States Code: US | Pending |
David Harrison
david@example.com
|
Unknown Unknown | United States Code: US | Active |
Finch Hoot
finch@example.com
|
Designer IT department | Argentina Code: AR | Suspended |
B
Bob Dean
bob@example.com
|
Executive director Marketing | Austria Code: AT | Active |
Ella Lauda
ella@example.com
|
Co-founder All departments | United Kingdom Code: GB | Active |
L
Lori Hunter
hunter@example.com
|
Developer Mobile app | Estonia Code: EE | Active |
M
Mark Colbert
mark@example.com
|
Executive director Human resources | Canada Code: CA | Active |
Costa Quinn
costa@example.com
|
Co-founder All departments | France Code: FR | Pending |
R
Rachel Doe
rachel@example.com
|
Accountant Finance | United States Code: US | Active |
Linda Bates
linda@example.com
|
Unknown Unknown | United Kingdom Code: UK | Suspended |
B
Brian Halligan
brian@example.com
|
Director Accounting | France Code: FR | Active |
C
Chris Mathew
chris@example.com
|
Developer Mobile app | Switzerland Code: CH | Pending |
Clarice Boone
clarice@example.com
|
Seller Branding products | United Kingdom Code: UK | Active |
L
Lewis Clarke
lewis@example.com
|
Co-founder IT department | Switzerland Code: CH | Pending |
Sam Kart
sam@example.com
|
Designer Branding | Canada Code: CA | Pending |
J
Johnny Appleseed
johnny@example.com
|
Accountant Human resources | United States Code: US | Active |
P
Phileas Fogg
phileas@example.com
|
Designer Branding | Spain Code: ES | Suspended |
Mark Williams
mark@example.com
|
Co-founder Branding | United Kingdom Code: GB | Active |
T
Timothy Silva
timothy@example.com
|
Developer Mobile app | Italy Code: IT | Pending |
G
Gary Bishop
gary@example.com
|
Developer Mobile app | Latvia Code: LV | Active |
Y
Yorker Scogings
yorker@example.com
|
Seller Branding products | Norway Code: NO | Suspended |
F
Frank Phillips
frank@example.com
|
Unknown Unknown | Norway Code: NO | Suspended |
E
Elizabeth Carter
eliz@example.com
|
Unknown Unknown | United States Code: UK | Pending |
<!-- Card -->
<div class="card">
<div class="card-header">
<h4 class="card-header-title">Users</h4>
</div>
<!-- Table -->
<div class="table-responsive datatable-custom">
<table id="datatableWithPagination" class="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="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img10.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Amanda Harvey <i class="tio-verified text-primary" data-toggle="tooltip" data-placement="top" title="Top endorsed"></i></span>
<span class="d-block font-size-sm text-body">amanda@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Director</span>
<span class="d-block font-size-sm">Human resources</span>
</td>
<td>United Kingdom <span class="text-hide">Code: GB</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle mr-3">
<span class="avatar-initials">A</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Anne Richard</span>
<span class="d-block font-size-sm text-body">anne@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Seller</span>
<span class="d-block font-size-sm">Branding products</span>
</td>
<td>United States <span class="text-hide">Code: US</span></td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img3.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">David Harrison</span>
<span class="d-block font-size-sm text-body">david@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block font-size-sm">Unknown</span>
</td>
<td>United States <span class="text-hide">Code: US</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img5.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Finch Hoot</span>
<span class="d-block font-size-sm text-body">finch@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Designer</span>
<span class="d-block font-size-sm">IT department</span>
</td>
<td>Argentina <span class="text-hide">Code: AR</span></td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-dark avatar-circle mr-3">
<span class="avatar-initials">B</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Bob Dean</span>
<span class="d-block font-size-sm text-body">bob@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Executive director</span>
<span class="d-block font-size-sm">Marketing</span>
</td>
<td>Austria <span class="text-hide">Code: AT</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img9.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Ella Lauda <i class="tio-verified text-primary" data-toggle="tooltip" data-placement="top" title="Top endorsed"></i></span>
<span class="d-block font-size-sm text-body">ella@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Co-founder</span>
<span class="d-block font-size-sm">All departments</span>
</td>
<td>United Kingdom <span class="text-hide">Code: GB</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-info avatar-circle mr-3">
<span class="avatar-initials">L</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Lori Hunter</span>
<span class="d-block font-size-sm text-body">hunter@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Developer</span>
<span class="d-block font-size-sm">Mobile app</span>
</td>
<td>Estonia <span class="text-hide">Code: EE</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle mr-3">
<span class="avatar-initials">M</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Mark Colbert</span>
<span class="d-block font-size-sm text-body">mark@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Executive director</span>
<span class="d-block font-size-sm">Human resources</span>
</td>
<td>Canada <span class="text-hide">Code: CA</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img6.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Costa Quinn</span>
<span class="d-block font-size-sm text-body">costa@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Co-founder</span>
<span class="d-block font-size-sm">All departments</span>
</td>
<td>France <span class="text-hide">Code: FR</span></td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-danger avatar-circle mr-3">
<span class="avatar-initials">R</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Rachel Doe <i class="tio-verified text-primary" data-toggle="tooltip" data-placement="top" title="Top endorsed"></i></span>
<span class="d-block font-size-sm text-body">rachel@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Accountant</span>
<span class="d-block font-size-sm">Finance</span>
</td>
<td>United States <span class="text-hide">Code: US</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img8.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Linda Bates</span>
<span class="d-block font-size-sm text-body">linda@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block font-size-sm">Unknown</span>
</td>
<td>United Kingdom <span class="text-hide">Code: UK</span></td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-info avatar-circle mr-3">
<span class="avatar-initials">B</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Brian Halligan</span>
<span class="d-block font-size-sm text-body">brian@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Director</span>
<span class="d-block font-size-sm">Accounting</span>
</td>
<td>France <span class="text-hide">Code: FR</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-dark avatar-circle mr-3">
<span class="avatar-initials">C</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Chris Mathew</span>
<span class="d-block font-size-sm text-body">chris@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Developer</span>
<span class="d-block font-size-sm">Mobile app</span>
</td>
<td>Switzerland <span class="text-hide">Code: CH</span></td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img7.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Clarice Boone <i class="tio-verified text-primary" data-toggle="tooltip" data-placement="top" title="Top endorsed"></i></span>
<span class="d-block font-size-sm text-body">clarice@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Seller</span>
<span class="d-block font-size-sm">Branding products</span>
</td>
<td>United Kingdom <span class="text-hide">Code: UK</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-dark avatar-circle mr-3">
<span class="avatar-initials">L</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Lewis Clarke</span>
<span class="d-block font-size-sm text-body">lewis@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Co-founder</span>
<span class="d-block font-size-sm">IT department</span>
</td>
<td>Switzerland <span class="text-hide">Code: CH</span></td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img4.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Sam Kart</span>
<span class="d-block font-size-sm text-body">sam@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Designer</span>
<span class="d-block font-size-sm">Branding</span>
</td>
<td>Canada <span class="text-hide">Code: CA</span></td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-danger avatar-circle mr-3">
<span class="avatar-initials">J</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Johnny Appleseed</span>
<span class="d-block font-size-sm text-body">johnny@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Accountant</span>
<span class="d-block font-size-sm">Human resources</span>
</td>
<td>United States <span class="text-hide">Code: US</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-danger avatar-circle mr-3">
<span class="avatar-initials">P</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Phileas Fogg</span>
<span class="d-block font-size-sm text-body">phileas@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Designer</span>
<span class="d-block font-size-sm">Branding</span>
</td>
<td>Spain <span class="text-hide">Code: ES</span></td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img6.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Mark Williams <i class="tio-verified text-primary" data-toggle="tooltip" data-placement="top" title="Top endorsed"></i></span>
<span class="d-block font-size-sm text-body">mark@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Co-founder</span>
<span class="d-block font-size-sm">Branding</span>
</td>
<td>United Kingdom <span class="text-hide">Code: GB</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-dark avatar-circle mr-3">
<span class="avatar-initials">T</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Timothy Silva</span>
<span class="d-block font-size-sm text-body">timothy@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Developer</span>
<span class="d-block font-size-sm">Mobile app</span>
</td>
<td>Italy <span class="text-hide">Code: IT</span></td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-dark avatar-circle mr-3">
<span class="avatar-initials">G</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Gary Bishop <i class="tio-verified text-primary" data-toggle="tooltip" data-placement="top" title="Top endorsed"></i></span>
<span class="d-block font-size-sm text-body">gary@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Developer</span>
<span class="d-block font-size-sm">Mobile app</span>
</td>
<td>Latvia <span class="text-hide">Code: LV</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-dark avatar-circle mr-3">
<span class="avatar-initials">Y</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Yorker Scogings</span>
<span class="d-block font-size-sm text-body">yorker@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Seller</span>
<span class="d-block font-size-sm">Branding products</span>
</td>
<td>Norway <span class="text-hide">Code: NO</span></td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-info avatar-circle mr-3">
<span class="avatar-initials">F</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Frank Phillips</span>
<span class="d-block font-size-sm text-body">frank@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block font-size-sm">Unknown</span>
</td>
<td>Norway <span class="text-hide">Code: NO</span></td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle mr-3">
<span class="avatar-initials">E</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Elizabeth Carter</span>
<span class="d-block font-size-sm text-body">eliz@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block font-size-sm">Unknown</span>
</td>
<td>United States <span class="text-hide">Code: UK</span></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>
<!-- End Card -->
Example with entries:
This example uses Select2 library.
Users
Name | Position | Country | Status |
---|---|---|---|
Amanda Harvey
amanda@example.com
|
Director Human resources | United Kingdom Code: GB | Active |
A
Anne Richard
anne@example.com
|
Seller Branding products | United States Code: US | Pending |
David Harrison
david@example.com
|
Unknown Unknown | United States Code: US | Active |
Finch Hoot
finch@example.com
|
Designer IT department | Argentina Code: AR | Suspended |
B
Bob Dean
bob@example.com
|
Executive director Marketing | Austria Code: AT | Active |
Ella Lauda
ella@example.com
|
Co-founder All departments | United Kingdom Code: GB | Active |
L
Lori Hunter
hunter@example.com
|
Developer Mobile app | Estonia Code: EE | Active |
M
Mark Colbert
mark@example.com
|
Executive director Human resources | Canada Code: CA | Active |
Costa Quinn
costa@example.com
|
Co-founder All departments | France Code: FR | Pending |
R
Rachel Doe
rachel@example.com
|
Accountant Finance | United States Code: US | Active |
Linda Bates
linda@example.com
|
Unknown Unknown | United Kingdom Code: UK | Suspended |
B
Brian Halligan
brian@example.com
|
Director Accounting | France Code: FR | Active |
C
Chris Mathew
chris@example.com
|
Developer Mobile app | Switzerland Code: CH | Pending |
Clarice Boone
clarice@example.com
|
Seller Branding products | United Kingdom Code: UK | Active |
L
Lewis Clarke
lewis@example.com
|
Co-founder IT department | Switzerland Code: CH | Pending |
Sam Kart
sam@example.com
|
Designer Branding | Canada Code: CA | Pending |
J
Johnny Appleseed
johnny@example.com
|
Accountant Human resources | United States Code: US | Active |
P
Phileas Fogg
phileas@example.com
|
Designer Branding | Spain Code: ES | Suspended |
Mark Williams
mark@example.com
|
Co-founder Branding | United Kingdom Code: GB | Active |
T
Timothy Silva
timothy@example.com
|
Developer Mobile app | Italy Code: IT | Pending |
G
Gary Bishop
gary@example.com
|
Developer Mobile app | Latvia Code: LV | Active |
Y
Yorker Scogings
yorker@example.com
|
Seller Branding products | Norway Code: NO | Suspended |
F
Frank Phillips
frank@example.com
|
Unknown Unknown | Norway Code: NO | Suspended |
E
Elizabeth Carter
eliz@example.com
|
Unknown Unknown | United States Code: UK | Pending |
Showing:
of
<!-- Card -->
<div class="card">
<div class="card-header">
<h4 class="card-header-title">Users</h4>
</div>
<!-- Table -->
<div class="table-responsive datatable-custom">
<table id="datatableWithEntries" class="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="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img10.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Amanda Harvey <i class="tio-verified text-primary" data-toggle="tooltip" data-placement="top" title="Top endorsed"></i></span>
<span class="d-block font-size-sm text-body">amanda@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Director</span>
<span class="d-block font-size-sm">Human resources</span>
</td>
<td>United Kingdom <span class="text-hide">Code: GB</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle mr-3">
<span class="avatar-initials">A</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Anne Richard</span>
<span class="d-block font-size-sm text-body">anne@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Seller</span>
<span class="d-block font-size-sm">Branding products</span>
</td>
<td>United States <span class="text-hide">Code: US</span></td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img3.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">David Harrison</span>
<span class="d-block font-size-sm text-body">david@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block font-size-sm">Unknown</span>
</td>
<td>United States <span class="text-hide">Code: US</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img5.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Finch Hoot</span>
<span class="d-block font-size-sm text-body">finch@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Designer</span>
<span class="d-block font-size-sm">IT department</span>
</td>
<td>Argentina <span class="text-hide">Code: AR</span></td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-dark avatar-circle mr-3">
<span class="avatar-initials">B</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Bob Dean</span>
<span class="d-block font-size-sm text-body">bob@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Executive director</span>
<span class="d-block font-size-sm">Marketing</span>
</td>
<td>Austria <span class="text-hide">Code: AT</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img9.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Ella Lauda <i class="tio-verified text-primary" data-toggle="tooltip" data-placement="top" title="Top endorsed"></i></span>
<span class="d-block font-size-sm text-body">ella@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Co-founder</span>
<span class="d-block font-size-sm">All departments</span>
</td>
<td>United Kingdom <span class="text-hide">Code: GB</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-info avatar-circle mr-3">
<span class="avatar-initials">L</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Lori Hunter</span>
<span class="d-block font-size-sm text-body">hunter@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Developer</span>
<span class="d-block font-size-sm">Mobile app</span>
</td>
<td>Estonia <span class="text-hide">Code: EE</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle mr-3">
<span class="avatar-initials">M</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Mark Colbert</span>
<span class="d-block font-size-sm text-body">mark@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Executive director</span>
<span class="d-block font-size-sm">Human resources</span>
</td>
<td>Canada <span class="text-hide">Code: CA</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img6.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Costa Quinn</span>
<span class="d-block font-size-sm text-body">costa@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Co-founder</span>
<span class="d-block font-size-sm">All departments</span>
</td>
<td>France <span class="text-hide">Code: FR</span></td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-danger avatar-circle mr-3">
<span class="avatar-initials">R</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Rachel Doe <i class="tio-verified text-primary" data-toggle="tooltip" data-placement="top" title="Top endorsed"></i></span>
<span class="d-block font-size-sm text-body">rachel@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Accountant</span>
<span class="d-block font-size-sm">Finance</span>
</td>
<td>United States <span class="text-hide">Code: US</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img8.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Linda Bates</span>
<span class="d-block font-size-sm text-body">linda@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block font-size-sm">Unknown</span>
</td>
<td>United Kingdom <span class="text-hide">Code: UK</span></td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-info avatar-circle mr-3">
<span class="avatar-initials">B</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Brian Halligan</span>
<span class="d-block font-size-sm text-body">brian@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Director</span>
<span class="d-block font-size-sm">Accounting</span>
</td>
<td>France <span class="text-hide">Code: FR</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-dark avatar-circle mr-3">
<span class="avatar-initials">C</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Chris Mathew</span>
<span class="d-block font-size-sm text-body">chris@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Developer</span>
<span class="d-block font-size-sm">Mobile app</span>
</td>
<td>Switzerland <span class="text-hide">Code: CH</span></td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img7.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Clarice Boone <i class="tio-verified text-primary" data-toggle="tooltip" data-placement="top" title="Top endorsed"></i></span>
<span class="d-block font-size-sm text-body">clarice@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Seller</span>
<span class="d-block font-size-sm">Branding products</span>
</td>
<td>United Kingdom <span class="text-hide">Code: UK</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-dark avatar-circle mr-3">
<span class="avatar-initials">L</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Lewis Clarke</span>
<span class="d-block font-size-sm text-body">lewis@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Co-founder</span>
<span class="d-block font-size-sm">IT department</span>
</td>
<td>Switzerland <span class="text-hide">Code: CH</span></td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img4.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Sam Kart</span>
<span class="d-block font-size-sm text-body">sam@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Designer</span>
<span class="d-block font-size-sm">Branding</span>
</td>
<td>Canada <span class="text-hide">Code: CA</span></td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-danger avatar-circle mr-3">
<span class="avatar-initials">J</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Johnny Appleseed</span>
<span class="d-block font-size-sm text-body">johnny@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Accountant</span>
<span class="d-block font-size-sm">Human resources</span>
</td>
<td>United States <span class="text-hide">Code: US</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-danger avatar-circle mr-3">
<span class="avatar-initials">P</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Phileas Fogg</span>
<span class="d-block font-size-sm text-body">phileas@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Designer</span>
<span class="d-block font-size-sm">Branding</span>
</td>
<td>Spain <span class="text-hide">Code: ES</span></td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img6.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Mark Williams <i class="tio-verified text-primary" data-toggle="tooltip" data-placement="top" title="Top endorsed"></i></span>
<span class="d-block font-size-sm text-body">mark@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Co-founder</span>
<span class="d-block font-size-sm">Branding</span>
</td>
<td>United Kingdom <span class="text-hide">Code: GB</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-dark avatar-circle mr-3">
<span class="avatar-initials">T</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Timothy Silva</span>
<span class="d-block font-size-sm text-body">timothy@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Developer</span>
<span class="d-block font-size-sm">Mobile app</span>
</td>
<td>Italy <span class="text-hide">Code: IT</span></td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-dark avatar-circle mr-3">
<span class="avatar-initials">G</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Gary Bishop <i class="tio-verified text-primary" data-toggle="tooltip" data-placement="top" title="Top endorsed"></i></span>
<span class="d-block font-size-sm text-body">gary@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Developer</span>
<span class="d-block font-size-sm">Mobile app</span>
</td>
<td>Latvia <span class="text-hide">Code: LV</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-dark avatar-circle mr-3">
<span class="avatar-initials">Y</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Yorker Scogings</span>
<span class="d-block font-size-sm text-body">yorker@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Seller</span>
<span class="d-block font-size-sm">Branding products</span>
</td>
<td>Norway <span class="text-hide">Code: NO</span></td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-info avatar-circle mr-3">
<span class="avatar-initials">F</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Frank Phillips</span>
<span class="d-block font-size-sm text-body">frank@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block font-size-sm">Unknown</span>
</td>
<td>Norway <span class="text-hide">Code: NO</span></td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle mr-3">
<span class="avatar-initials">E</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Elizabeth Carter</span>
<span class="d-block font-size-sm text-body">eliz@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block font-size-sm">Unknown</span>
</td>
<td>United States <span class="text-hide">Code: UK</span></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="mr-2">Showing:</span>
<!-- Select -->
<select id="datatableEntries" class="js-select2-custom"
data-hs-select2-options='{
"minimumResultsForSearch": "Infinity",
"customClass": "custom-select custom-select-sm custom-select-borderless",
"dropdownAutoWidth": true,
"width": true
}'>
<option value="10">10</option>
<option value="15" selected>15</option>
<option value="20">20</option>
</select>
<!-- End Select -->
<span class="text-secondary mr-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>
<!-- End Card -->
<link rel="stylesheet" href="../node_modules/select2/dist/css/select2.min.css">
<!-- JS Implementing Plugins -->
<script src="../node_modules/select2/dist/js/select2.full.min.js"></script>
<script>
$(document).on('ready', function () {
// initialization of select2
$('.js-select2-custom').each(function () {
var select2 = $.HSCore.components.HSSelect2.init($(this));
});
});
</script>
With search
Users
Name | Position | Country | Status |
---|---|---|---|
Amanda Harvey
amanda@example.com
|
Director Human resources | United Kingdom Code: GB | Active |
A
Anne Richard
anne@example.com
|
Seller Branding products | United States Code: US | Pending |
David Harrison
david@example.com
|
Unknown Unknown | United States Code: US | Active |
Finch Hoot
finch@example.com
|
Designer IT department | Argentina Code: AR | Suspended |
B
Bob Dean
bob@example.com
|
Executive director Marketing | Austria Code: AT | Active |
Ella Lauda
ella@example.com
|
Co-founder All departments | United Kingdom Code: GB | Active |
L
Lori Hunter
hunter@example.com
|
Developer Mobile app | Estonia Code: EE | Active |
M
Mark Colbert
mark@example.com
|
Executive director Human resources | Canada Code: CA | Active |
Costa Quinn
costa@example.com
|
Co-founder All departments | France Code: FR | Pending |
R
Rachel Doe
rachel@example.com
|
Accountant Finance | United States Code: US | Active |
Linda Bates
linda@example.com
|
Unknown Unknown | United Kingdom Code: UK | Suspended |
B
Brian Halligan
brian@example.com
|
Director Accounting | France Code: FR | Active |
C
Chris Mathew
chris@example.com
|
Developer Mobile app | Switzerland Code: CH | Pending |
Clarice Boone
clarice@example.com
|
Seller Branding products | United Kingdom Code: UK | Active |
L
Lewis Clarke
lewis@example.com
|
Co-founder IT department | Switzerland Code: CH | Pending |
Sam Kart
sam@example.com
|
Designer Branding | Canada Code: CA | Pending |
J
Johnny Appleseed
johnny@example.com
|
Accountant Human resources | United States Code: US | Active |
P
Phileas Fogg
phileas@example.com
|
Designer Branding | Spain Code: ES | Suspended |
Mark Williams
mark@example.com
|
Co-founder Branding | United Kingdom Code: GB | Active |
T
Timothy Silva
timothy@example.com
|
Developer Mobile app | Italy Code: IT | Pending |
G
Gary Bishop
gary@example.com
|
Developer Mobile app | Latvia Code: LV | Active |
Y
Yorker Scogings
yorker@example.com
|
Seller Branding products | Norway Code: NO | Suspended |
F
Frank Phillips
frank@example.com
|
Unknown Unknown | Norway Code: NO | Suspended |
E
Elizabeth Carter
eliz@example.com
|
Unknown Unknown | United States Code: UK | Pending |
<!-- Card -->
<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">
<div class="input-group-text">
<i class="tio-search"></i>
</div>
</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 id="datatableWithSearch" class="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": "datatableWithSearch"
}'>
<thead class="thead-light">
<tr>
<th>Name</th>
<th>Position</th>
<th>Country</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img10.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Amanda Harvey <i class="tio-verified text-primary" data-toggle="tooltip" data-placement="top" title="Top endorsed"></i></span>
<span class="d-block font-size-sm text-body">amanda@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Director</span>
<span class="d-block font-size-sm">Human resources</span>
</td>
<td>United Kingdom <span class="text-hide">Code: GB</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle mr-3">
<span class="avatar-initials">A</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Anne Richard</span>
<span class="d-block font-size-sm text-body">anne@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Seller</span>
<span class="d-block font-size-sm">Branding products</span>
</td>
<td>United States <span class="text-hide">Code: US</span></td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img3.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">David Harrison</span>
<span class="d-block font-size-sm text-body">david@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block font-size-sm">Unknown</span>
</td>
<td>United States <span class="text-hide">Code: US</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img5.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Finch Hoot</span>
<span class="d-block font-size-sm text-body">finch@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Designer</span>
<span class="d-block font-size-sm">IT department</span>
</td>
<td>Argentina <span class="text-hide">Code: AR</span></td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-dark avatar-circle mr-3">
<span class="avatar-initials">B</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Bob Dean</span>
<span class="d-block font-size-sm text-body">bob@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Executive director</span>
<span class="d-block font-size-sm">Marketing</span>
</td>
<td>Austria <span class="text-hide">Code: AT</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img9.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Ella Lauda <i class="tio-verified text-primary" data-toggle="tooltip" data-placement="top" title="Top endorsed"></i></span>
<span class="d-block font-size-sm text-body">ella@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Co-founder</span>
<span class="d-block font-size-sm">All departments</span>
</td>
<td>United Kingdom <span class="text-hide">Code: GB</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-info avatar-circle mr-3">
<span class="avatar-initials">L</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Lori Hunter</span>
<span class="d-block font-size-sm text-body">hunter@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Developer</span>
<span class="d-block font-size-sm">Mobile app</span>
</td>
<td>Estonia <span class="text-hide">Code: EE</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle mr-3">
<span class="avatar-initials">M</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Mark Colbert</span>
<span class="d-block font-size-sm text-body">mark@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Executive director</span>
<span class="d-block font-size-sm">Human resources</span>
</td>
<td>Canada <span class="text-hide">Code: CA</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img6.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Costa Quinn</span>
<span class="d-block font-size-sm text-body">costa@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Co-founder</span>
<span class="d-block font-size-sm">All departments</span>
</td>
<td>France <span class="text-hide">Code: FR</span></td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-danger avatar-circle mr-3">
<span class="avatar-initials">R</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Rachel Doe <i class="tio-verified text-primary" data-toggle="tooltip" data-placement="top" title="Top endorsed"></i></span>
<span class="d-block font-size-sm text-body">rachel@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Accountant</span>
<span class="d-block font-size-sm">Finance</span>
</td>
<td>United States <span class="text-hide">Code: US</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img8.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Linda Bates</span>
<span class="d-block font-size-sm text-body">linda@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block font-size-sm">Unknown</span>
</td>
<td>United Kingdom <span class="text-hide">Code: UK</span></td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-info avatar-circle mr-3">
<span class="avatar-initials">B</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Brian Halligan</span>
<span class="d-block font-size-sm text-body">brian@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Director</span>
<span class="d-block font-size-sm">Accounting</span>
</td>
<td>France <span class="text-hide">Code: FR</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-dark avatar-circle mr-3">
<span class="avatar-initials">C</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Chris Mathew</span>
<span class="d-block font-size-sm text-body">chris@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Developer</span>
<span class="d-block font-size-sm">Mobile app</span>
</td>
<td>Switzerland <span class="text-hide">Code: CH</span></td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img7.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Clarice Boone <i class="tio-verified text-primary" data-toggle="tooltip" data-placement="top" title="Top endorsed"></i></span>
<span class="d-block font-size-sm text-body">clarice@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Seller</span>
<span class="d-block font-size-sm">Branding products</span>
</td>
<td>United Kingdom <span class="text-hide">Code: UK</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-dark avatar-circle mr-3">
<span class="avatar-initials">L</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Lewis Clarke</span>
<span class="d-block font-size-sm text-body">lewis@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Co-founder</span>
<span class="d-block font-size-sm">IT department</span>
</td>
<td>Switzerland <span class="text-hide">Code: CH</span></td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img4.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Sam Kart</span>
<span class="d-block font-size-sm text-body">sam@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Designer</span>
<span class="d-block font-size-sm">Branding</span>
</td>
<td>Canada <span class="text-hide">Code: CA</span></td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-danger avatar-circle mr-3">
<span class="avatar-initials">J</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Johnny Appleseed</span>
<span class="d-block font-size-sm text-body">johnny@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Accountant</span>
<span class="d-block font-size-sm">Human resources</span>
</td>
<td>United States <span class="text-hide">Code: US</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-danger avatar-circle mr-3">
<span class="avatar-initials">P</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Phileas Fogg</span>
<span class="d-block font-size-sm text-body">phileas@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Designer</span>
<span class="d-block font-size-sm">Branding</span>
</td>
<td>Spain <span class="text-hide">Code: ES</span></td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img6.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Mark Williams <i class="tio-verified text-primary" data-toggle="tooltip" data-placement="top" title="Top endorsed"></i></span>
<span class="d-block font-size-sm text-body">mark@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Co-founder</span>
<span class="d-block font-size-sm">Branding</span>
</td>
<td>United Kingdom <span class="text-hide">Code: GB</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-dark avatar-circle mr-3">
<span class="avatar-initials">T</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Timothy Silva</span>
<span class="d-block font-size-sm text-body">timothy@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Developer</span>
<span class="d-block font-size-sm">Mobile app</span>
</td>
<td>Italy <span class="text-hide">Code: IT</span></td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-dark avatar-circle mr-3">
<span class="avatar-initials">G</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Gary Bishop <i class="tio-verified text-primary" data-toggle="tooltip" data-placement="top" title="Top endorsed"></i></span>
<span class="d-block font-size-sm text-body">gary@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Developer</span>
<span class="d-block font-size-sm">Mobile app</span>
</td>
<td>Latvia <span class="text-hide">Code: LV</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-dark avatar-circle mr-3">
<span class="avatar-initials">Y</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Yorker Scogings</span>
<span class="d-block font-size-sm text-body">yorker@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Seller</span>
<span class="d-block font-size-sm">Branding products</span>
</td>
<td>Norway <span class="text-hide">Code: NO</span></td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-info avatar-circle mr-3">
<span class="avatar-initials">F</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Frank Phillips</span>
<span class="d-block font-size-sm text-body">frank@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block font-size-sm">Unknown</span>
</td>
<td>Norway <span class="text-hide">Code: NO</span></td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle mr-3">
<span class="avatar-initials">E</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Elizabeth Carter</span>
<span class="d-block font-size-sm text-body">eliz@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block font-size-sm">Unknown</span>
</td>
<td>United States <span class="text-hide">Code: UK</span></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="datatableWithSearch" aria-label="Activity pagination"></nav>
</div>
<!-- End Pagination -->
</div>
<!-- End Footer -->
</div>
<!-- End Card -->
With filter
This example uses Select2 library.
Users
Name | Position | Country | Status |
---|---|---|---|
Amanda Harvey
amanda@example.com
|
Director Human resources | United Kingdom Code: GB | Active |
A
Anne Richard
anne@example.com
|
Seller Branding products | United States Code: US | Pending |
David Harrison
david@example.com
|
Unknown Unknown | United States Code: US | Active |
Finch Hoot
finch@example.com
|
Designer IT department | Argentina Code: AR | Suspended |
B
Bob Dean
bob@example.com
|
Executive director Marketing | Austria Code: AT | Active |
Ella Lauda
ella@example.com
|
Co-founder All departments | United Kingdom Code: GB | Active |
L
Lori Hunter
hunter@example.com
|
Developer Mobile app | Estonia Code: EE | Active |
M
Mark Colbert
mark@example.com
|
Executive director Human resources | Canada Code: CA | Active |
Costa Quinn
costa@example.com
|
Co-founder All departments | France Code: FR | Pending |
R
Rachel Doe
rachel@example.com
|
Accountant Finance | United States Code: US | Active |
Linda Bates
linda@example.com
|
Unknown Unknown | United Kingdom Code: UK | Suspended |
B
Brian Halligan
brian@example.com
|
Director Accounting | France Code: FR | Active |
C
Chris Mathew
chris@example.com
|
Developer Mobile app | Switzerland Code: CH | Pending |
Clarice Boone
clarice@example.com
|
Seller Branding products | United Kingdom Code: UK | Active |
L
Lewis Clarke
lewis@example.com
|
Co-founder IT department | Switzerland Code: CH | Pending |
Sam Kart
sam@example.com
|
Designer Branding | Canada Code: CA | Pending |
J
Johnny Appleseed
johnny@example.com
|
Accountant Human resources | United States Code: US | Active |
P
Phileas Fogg
phileas@example.com
|
Designer Branding | Spain Code: ES | Suspended |
Mark Williams
mark@example.com
|
Co-founder Branding | United Kingdom Code: GB | Active |
T
Timothy Silva
timothy@example.com
|
Developer Mobile app | Italy Code: IT | Pending |
G
Gary Bishop
gary@example.com
|
Developer Mobile app | Latvia Code: LV | Active |
Y
Yorker Scogings
yorker@example.com
|
Seller Branding products | Norway Code: NO | Suspended |
F
Frank Phillips
frank@example.com
|
Unknown Unknown | Norway Code: NO | Suspended |
E
Elizabeth Carter
eliz@example.com
|
Unknown Unknown | United States Code: UK | Pending |
<!-- Card -->
<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 -->
<select class="js-select2-custom js-datatable-filter"
data-target-column-index="1"
data-hs-select2-options='{
"minimumResultsForSearch": "Infinity",
"customClass": "custom-select custom-select-sm custom-select-borderless",
"dropdownAutoWidth": true,
"width": true
}'>
<option value="">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>
<!-- End Select -->
</div>
<div class="col">
<form>
<!-- Search -->
<div class="input-group input-group-merge input-group-flush">
<div class="input-group-prepend">
<div class="input-group-text">
<i class="tio-search"></i>
</div>
</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="datatableWithFilter" class="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="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img10.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Amanda Harvey <i class="tio-verified text-primary" data-toggle="tooltip" data-placement="top" title="Top endorsed"></i></span>
<span class="d-block font-size-sm text-body">amanda@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Director</span>
<span class="d-block font-size-sm">Human resources</span>
</td>
<td>United Kingdom <span class="text-hide">Code: GB</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle mr-3">
<span class="avatar-initials">A</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Anne Richard</span>
<span class="d-block font-size-sm text-body">anne@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Seller</span>
<span class="d-block font-size-sm">Branding products</span>
</td>
<td>United States <span class="text-hide">Code: US</span></td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img3.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">David Harrison</span>
<span class="d-block font-size-sm text-body">david@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block font-size-sm">Unknown</span>
</td>
<td>United States <span class="text-hide">Code: US</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img5.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Finch Hoot</span>
<span class="d-block font-size-sm text-body">finch@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Designer</span>
<span class="d-block font-size-sm">IT department</span>
</td>
<td>Argentina <span class="text-hide">Code: AR</span></td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-dark avatar-circle mr-3">
<span class="avatar-initials">B</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Bob Dean</span>
<span class="d-block font-size-sm text-body">bob@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Executive director</span>
<span class="d-block font-size-sm">Marketing</span>
</td>
<td>Austria <span class="text-hide">Code: AT</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img9.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Ella Lauda <i class="tio-verified text-primary" data-toggle="tooltip" data-placement="top" title="Top endorsed"></i></span>
<span class="d-block font-size-sm text-body">ella@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Co-founder</span>
<span class="d-block font-size-sm">All departments</span>
</td>
<td>United Kingdom <span class="text-hide">Code: GB</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-info avatar-circle mr-3">
<span class="avatar-initials">L</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Lori Hunter</span>
<span class="d-block font-size-sm text-body">hunter@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Developer</span>
<span class="d-block font-size-sm">Mobile app</span>
</td>
<td>Estonia <span class="text-hide">Code: EE</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle mr-3">
<span class="avatar-initials">M</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Mark Colbert</span>
<span class="d-block font-size-sm text-body">mark@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Executive director</span>
<span class="d-block font-size-sm">Human resources</span>
</td>
<td>Canada <span class="text-hide">Code: CA</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img6.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Costa Quinn</span>
<span class="d-block font-size-sm text-body">costa@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Co-founder</span>
<span class="d-block font-size-sm">All departments</span>
</td>
<td>France <span class="text-hide">Code: FR</span></td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-danger avatar-circle mr-3">
<span class="avatar-initials">R</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Rachel Doe <i class="tio-verified text-primary" data-toggle="tooltip" data-placement="top" title="Top endorsed"></i></span>
<span class="d-block font-size-sm text-body">rachel@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Accountant</span>
<span class="d-block font-size-sm">Finance</span>
</td>
<td>United States <span class="text-hide">Code: US</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img8.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Linda Bates</span>
<span class="d-block font-size-sm text-body">linda@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block font-size-sm">Unknown</span>
</td>
<td>United Kingdom <span class="text-hide">Code: UK</span></td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-info avatar-circle mr-3">
<span class="avatar-initials">B</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Brian Halligan</span>
<span class="d-block font-size-sm text-body">brian@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Director</span>
<span class="d-block font-size-sm">Accounting</span>
</td>
<td>France <span class="text-hide">Code: FR</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-dark avatar-circle mr-3">
<span class="avatar-initials">C</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Chris Mathew</span>
<span class="d-block font-size-sm text-body">chris@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Developer</span>
<span class="d-block font-size-sm">Mobile app</span>
</td>
<td>Switzerland <span class="text-hide">Code: CH</span></td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img7.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Clarice Boone <i class="tio-verified text-primary" data-toggle="tooltip" data-placement="top" title="Top endorsed"></i></span>
<span class="d-block font-size-sm text-body">clarice@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Seller</span>
<span class="d-block font-size-sm">Branding products</span>
</td>
<td>United Kingdom <span class="text-hide">Code: UK</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-dark avatar-circle mr-3">
<span class="avatar-initials">L</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Lewis Clarke</span>
<span class="d-block font-size-sm text-body">lewis@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Co-founder</span>
<span class="d-block font-size-sm">IT department</span>
</td>
<td>Switzerland <span class="text-hide">Code: CH</span></td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img4.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Sam Kart</span>
<span class="d-block font-size-sm text-body">sam@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Designer</span>
<span class="d-block font-size-sm">Branding</span>
</td>
<td>Canada <span class="text-hide">Code: CA</span></td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-danger avatar-circle mr-3">
<span class="avatar-initials">J</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Johnny Appleseed</span>
<span class="d-block font-size-sm text-body">johnny@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Accountant</span>
<span class="d-block font-size-sm">Human resources</span>
</td>
<td>United States <span class="text-hide">Code: US</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-danger avatar-circle mr-3">
<span class="avatar-initials">P</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Phileas Fogg</span>
<span class="d-block font-size-sm text-body">phileas@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Designer</span>
<span class="d-block font-size-sm">Branding</span>
</td>
<td>Spain <span class="text-hide">Code: ES</span></td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img6.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Mark Williams <i class="tio-verified text-primary" data-toggle="tooltip" data-placement="top" title="Top endorsed"></i></span>
<span class="d-block font-size-sm text-body">mark@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Co-founder</span>
<span class="d-block font-size-sm">Branding</span>
</td>
<td>United Kingdom <span class="text-hide">Code: GB</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-dark avatar-circle mr-3">
<span class="avatar-initials">T</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Timothy Silva</span>
<span class="d-block font-size-sm text-body">timothy@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Developer</span>
<span class="d-block font-size-sm">Mobile app</span>
</td>
<td>Italy <span class="text-hide">Code: IT</span></td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-dark avatar-circle mr-3">
<span class="avatar-initials">G</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Gary Bishop <i class="tio-verified text-primary" data-toggle="tooltip" data-placement="top" title="Top endorsed"></i></span>
<span class="d-block font-size-sm text-body">gary@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Developer</span>
<span class="d-block font-size-sm">Mobile app</span>
</td>
<td>Latvia <span class="text-hide">Code: LV</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-dark avatar-circle mr-3">
<span class="avatar-initials">Y</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Yorker Scogings</span>
<span class="d-block font-size-sm text-body">yorker@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Seller</span>
<span class="d-block font-size-sm">Branding products</span>
</td>
<td>Norway <span class="text-hide">Code: NO</span></td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-info avatar-circle mr-3">
<span class="avatar-initials">F</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Frank Phillips</span>
<span class="d-block font-size-sm text-body">frank@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block font-size-sm">Unknown</span>
</td>
<td>Norway <span class="text-hide">Code: NO</span></td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle mr-3">
<span class="avatar-initials">E</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Elizabeth Carter</span>
<span class="d-block font-size-sm text-body">eliz@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block font-size-sm">Unknown</span>
</td>
<td>United States <span class="text-hide">Code: UK</span></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>
<!-- End Card -->
<link rel="stylesheet" href="../node_modules/select2/dist/css/select2.min.css">
<!-- JS Implementing Plugins -->
<script src="../node_modules/select2/dist/js/select2.full.min.js"></script>
<script>
$(document).on('ready', function () {
// initialization of select2
$('.js-select2-custom').each(function () {
var select2 = $.HSCore.components.HSSelect2.init($(this));
});
});
</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 Code: GB | Active |
|
A
Anne Richard
anne@example.com
|
Seller Branding products | United States Code: US | Pending |
|
David Harrison
david@example.com
|
Unknown Unknown | United States Code: US | Active |
|
Finch Hoot
finch@example.com
|
Designer IT department | Argentina Code: AR | Suspended |
|
B
Bob Dean
bob@example.com
|
Executive director Marketing | Austria Code: AT | Active |
<!-- Card -->
<div class="card">
<!-- Header -->
<div class="card-header">
<h5 class="card-header-title">Users</h5>
<!-- Datatable Info -->
<div id="datatableWithCheckboxSelectCounterInfo" class="mr-2" style="display: none;">
<div class="d-flex align-items-center">
<span class="font-size-sm mr-3">
<span id="datatableWithCheckboxSelectCounter">0</span>
Selected
</span>
<a class="btn btn-sm btn-outline-danger" href="javascript:;">
<i class="tio-delete-outlined"></i> Delete
</a>
</div>
</div>
<!-- End Datatable Info -->
</div>
<!-- End Header -->
<!-- Table -->
<div class="table-responsive datatable-custom">
<table id="datatableWithCheckboxSelect" class="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-pr-0">
<div class="custom-control custom-checkbox">
<input id="datatableWithCheckboxSelectAll" type="checkbox" class="custom-control-input">
<label class="custom-control-label" for="datatableWithCheckboxSelectAll"></label>
</div>
</th>
<th class="table-column-pl-0">Name</th>
<th>Position</th>
<th>Country</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<tr>
<td class="table-column-pr-0">
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="usersDataCheck1">
<label class="custom-control-label" for="usersDataCheck1"></label>
</div>
</td>
<td class="table-column-pl-0">
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img10.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Amanda Harvey <i class="tio-verified text-primary" data-toggle="tooltip" data-placement="top" title="Top endorsed"></i></span>
<span class="d-block font-size-sm text-body">amanda@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Director</span>
<span class="d-block font-size-sm">Human resources</span>
</td>
<td>United Kingdom <span class="text-hide">Code: GB</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td class="table-column-pr-0">
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="usersDataCheck2">
<label class="custom-control-label" for="usersDataCheck2"></label>
</div>
</td>
<td class="table-column-pl-0">
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle mr-3">
<span class="avatar-initials">A</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Anne Richard</span>
<span class="d-block font-size-sm text-body">anne@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Seller</span>
<span class="d-block font-size-sm">Branding products</span>
</td>
<td>United States <span class="text-hide">Code: US</span></td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td class="table-column-pr-0">
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="usersDataCheck3">
<label class="custom-control-label" for="usersDataCheck3"></label>
</div>
</td>
<td class="table-column-pl-0">
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img3.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">David Harrison</span>
<span class="d-block font-size-sm text-body">david@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block font-size-sm">Unknown</span>
</td>
<td>United States <span class="text-hide">Code: US</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td class="table-column-pr-0">
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="usersDataCheck4">
<label class="custom-control-label" for="usersDataCheck4"></label>
</div>
</td>
<td class="table-column-pl-0">
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img5.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Finch Hoot</span>
<span class="d-block font-size-sm text-body">finch@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Designer</span>
<span class="d-block font-size-sm">IT department</span>
</td>
<td>Argentina <span class="text-hide">Code: AR</span></td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td class="table-column-pr-0">
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="usersDataCheck5">
<label class="custom-control-label" for="usersDataCheck5"></label>
</div>
</td>
<td class="table-column-pl-0">
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-dark avatar-circle mr-3">
<span class="avatar-initials">B</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Bob Dean</span>
<span class="d-block font-size-sm text-body">bob@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Executive director</span>
<span class="d-block font-size-sm">Marketing</span>
</td>
<td>Austria <span class="text-hide">Code: AT</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
</tbody>
</table>
</div>
<!-- End Table -->
</div>
<!-- End Card -->
<link rel="stylesheet" href="../node_modules/select2/dist/css/select2.min.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>
$(document).on('ready', function () {
// initialization of datatables
var datatable = $.HSCore.components.HSDatatables.init($('#datatableWithCheckboxSelect'), {
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 Code: GB | Active |
Anne Richard anne@example.com | Seller Branding products | United States Code: US | Pending |
David Harrison david@example.com | Unknown Unknown | United States Code: US | Active |
Finch Hoot finch@example.com | Designer IT department | Argentina Code: AR | Suspended |
Bob Dean bob@example.com | Executive director Marketing | Austria Code: AT | Active |
Ella Lauda ella@example.com | Co-founder All departments | United Kingdom Code: GB | Active |
<!-- Card -->
<div class="card">
<!-- Header -->
<div class="card-header">
<h5 class="card-header-title">Users</h5>
</div>
<!-- End Header -->
<!-- Table -->
<div class="table-responsive datatable-custom">
<table id="columnSearchDatatable" class="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>
<select id="column4_search" class="js-select2-custom"
data-hs-select2-options='{
"minimumResultsForSearch": "Infinity",
"customClass": "custom-select custom-select-sm text-capitalize"
}'>
<option value="">Any</option>
<option value="Active">Active</option>
<option value="Pending">Pending</option>
<option value="Suspended">Suspended</option>
</select>
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<span class="d-block h5 text-hover-primary mb-0">Amanda Harvey <i class="tio-verified text-primary" data-toggle="tooltip" data-placement="top" title="Top endorsed"></i></span>
<span class="d-block font-size-sm text-body">amanda@example.com</span>
</td>
<td>
<span class="d-block h5 mb-0">Director</span>
<span class="d-block font-size-sm">Human resources</span>
</td>
<td>United Kingdom <span class="text-hide">Code: GB</span></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 font-size-sm text-body">anne@example.com</span>
</td>
<td>
<span class="d-block h5 mb-0">Seller</span>
<span class="d-block font-size-sm">Branding products</span>
</td>
<td>United States <span class="text-hide">Code: US</span></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 font-size-sm text-body">david@example.com</span>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block font-size-sm">Unknown</span>
</td>
<td>United States <span class="text-hide">Code: US</span></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 font-size-sm text-body">finch@example.com</span>
</td>
<td>
<span class="d-block h5 mb-0">Designer</span>
<span class="d-block font-size-sm">IT department</span>
</td>
<td>Argentina <span class="text-hide">Code: AR</span></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 font-size-sm text-body">bob@example.com</span>
</td>
<td>
<span class="d-block h5 mb-0">Executive director</span>
<span class="d-block font-size-sm">Marketing</span>
</td>
<td>Austria <span class="text-hide">Code: AT</span></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="tio-verified text-primary" data-toggle="tooltip" data-placement="top" title="Top endorsed"></i></span>
<span class="d-block font-size-sm text-body">ella@example.com</span>
</td>
<td>
<span class="d-block h5 mb-0">Co-founder</span>
<span class="d-block font-size-sm">All departments</span>
</td>
<td>United Kingdom <span class="text-hide">Code: GB</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
</tbody>
</table>
</div>
<!-- End Table -->
</div>
<!-- End Card -->
<link rel="stylesheet" href="../node_modules/select2/dist/css/select2.min.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>
$(document).on('ready', function () {
// initialization of datatables
var datatable = $.HSCore.components.HSDatatables.init($('#columnSearchDatatable'));
$('#column1_search').on( 'keyup', function () {
datatable
.columns( 0 )
.search( this.value )
.draw();
} );
$('#column2_search').on( 'keyup', function () {
datatable
.columns( 1 )
.search( this.value )
.draw();
} );
$('#column3_search').on( 'keyup', function () {
datatable
.columns( 2 )
.search( this.value )
.draw();
} );
$('#column4_search').on( 'change', function () {
datatable
.columns( 3 )
.search( this.value )
.draw();
} );
// initialization of select2
$('.js-select2-custom').each(function () {
var select2 = $.HSCore.components.HSSelect2.init($(this));
});
});
</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 Code: GB | Active |
A
Anne Richard
anne@example.com
|
12/01/2019 | United States Code: US | Pending |
David Harrison
david@example.com
|
29/03/2020 | United States Code: US | Active |
Finch Hoot
finch@example.com
|
28/11/2018 | Argentina Code: AR | Suspended |
B
Bob Dean
bob@example.com
|
02/12/2020 | Austria Code: AT | Active |
Ella Lauda
ella@example.com
|
06/08/2020 | United Kingdom Code: GB | Active |
L
Lori Hunter
hunter@example.com
|
14/10/2019 | Estonia Code: EE | Active |
M
Mark Colbert
mark@example.com
|
15/09/2019 | Canada Code: CA | Active |
Costa Quinn
costa@example.com
|
13/12/2018 | France Code: FR | Pending |
R
Rachel Doe
rachel@example.com
|
19/12/2018 | United States Code: US | Active |
Linda Bates
linda@example.com
|
2013/03/03 | United Kingdom Code: UK | Suspended |
B
Brian Halligan
brian@example.com
|
16/10/2018 | France Code: FR | Active |
C
Chris Mathew
chris@example.com
|
18/12/2020 | Switzerland Code: CH | Pending |
Clarice Boone
clarice@example.com
|
17/03/2019 | United Kingdom Code: UK | Active |
L
Lewis Clarke
lewis@example.com
|
27/11/2020 | Switzerland Code: CH | Pending |
Sam Kart
sam@example.com
|
09/06/2019 | Canada Code: CA | Pending |
J
Johnny Appleseed
johnny@example.com
|
10/04/2019 | United States Code: US | Active |
P
Phileas Fogg
phileas@example.com
|
13/10/2020 | Spain Code: ES | Suspended |
Mark Williams
mark@example.com
|
26/09/2020 | United Kingdom Code: GB | Active |
T
Timothy Silva
timothy@example.com
|
03/09/2020 | Italy Code: IT | Pending |
G
Gary Bishop
gary@example.com
|
25/06/2019 | Latvia Code: LV | Active |
Y
Yorker Scogings
yorker@example.com
|
12/12/2020 | Norway Code: NO | Suspended |
F
Frank Phillips
frank@example.com
|
20/09/2019 | Norway Code: NO | Suspended |
E
Elizabeth Carter
eliz@example.com
|
09/10/2019 | United States Code: UK | Pending |
<!-- Card -->
<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 -->
<div class="input-group input-group-merge">
<div class="input-group-prepend">
<span class="input-group-text">
<i class="tio-date-range"></i>
</span>
</div>
<input type="text" class="js-daterangepicker form-control daterangepicker-custom-input" placeholder="Select dates"
data-hs-daterangepicker-options='{
"autoUpdateInput": false,
"locale": {
"cancelLabel": "Clear"
}
}'>
</div>
<!-- End Daterangepicker -->
</div>
</div>
<!-- End Row -->
</div>
<!-- Table -->
<div class="table-responsive datatable-custom">
<table id="datatableDatepickerFilter" class="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="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img10.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Amanda Harvey <i class="tio-verified text-primary" data-toggle="tooltip" data-placement="top" title="Top endorsed"></i></span>
<span class="d-block font-size-sm text-body">amanda@example.com</span>
</div>
</a>
</td>
<td>25/07/2020</td>
<td>United Kingdom <span class="text-hide">Code: GB</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle mr-3">
<span class="avatar-initials">A</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Anne Richard</span>
<span class="d-block font-size-sm text-body">anne@example.com</span>
</div>
</a>
</td>
<td>12/01/2019</td>
<td>United States <span class="text-hide">Code: US</span></td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img3.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">David Harrison</span>
<span class="d-block font-size-sm text-body">david@example.com</span>
</div>
</a>
</td>
<td>29/03/2020</td>
<td>United States <span class="text-hide">Code: US</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img5.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Finch Hoot</span>
<span class="d-block font-size-sm text-body">finch@example.com</span>
</div>
</a>
</td>
<td>28/11/2018</td>
<td>Argentina <span class="text-hide">Code: AR</span></td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-dark avatar-circle mr-3">
<span class="avatar-initials">B</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Bob Dean</span>
<span class="d-block font-size-sm text-body">bob@example.com</span>
</div>
</a>
</td>
<td>02/12/2020</td>
<td>Austria <span class="text-hide">Code: AT</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img9.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Ella Lauda <i class="tio-verified text-primary" data-toggle="tooltip" data-placement="top" title="Top endorsed"></i></span>
<span class="d-block font-size-sm text-body">ella@example.com</span>
</div>
</a>
</td>
<td>06/08/2020</td>
<td>United Kingdom <span class="text-hide">Code: GB</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-info avatar-circle mr-3">
<span class="avatar-initials">L</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Lori Hunter</span>
<span class="d-block font-size-sm text-body">hunter@example.com</span>
</div>
</a>
</td>
<td>14/10/2019</td>
<td>Estonia <span class="text-hide">Code: EE</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle mr-3">
<span class="avatar-initials">M</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Mark Colbert</span>
<span class="d-block font-size-sm text-body">mark@example.com</span>
</div>
</a>
</td>
<td>15/09/2019</td>
<td>Canada <span class="text-hide">Code: CA</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img6.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Costa Quinn</span>
<span class="d-block font-size-sm text-body">costa@example.com</span>
</div>
</a>
</td>
<td>13/12/2018</td>
<td>France <span class="text-hide">Code: FR</span></td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-danger avatar-circle mr-3">
<span class="avatar-initials">R</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Rachel Doe <i class="tio-verified text-primary" data-toggle="tooltip" data-placement="top" title="Top endorsed"></i></span>
<span class="d-block font-size-sm text-body">rachel@example.com</span>
</div>
</a>
</td>
<td>19/12/2018</td>
<td>United States <span class="text-hide">Code: US</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img8.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Linda Bates</span>
<span class="d-block font-size-sm text-body">linda@example.com</span>
</div>
</a>
</td>
<td>2013/03/03</td>
<td>United Kingdom <span class="text-hide">Code: UK</span></td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-info avatar-circle mr-3">
<span class="avatar-initials">B</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Brian Halligan</span>
<span class="d-block font-size-sm text-body">brian@example.com</span>
</div>
</a>
</td>
<td>16/10/2018</td>
<td>France <span class="text-hide">Code: FR</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-dark avatar-circle mr-3">
<span class="avatar-initials">C</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Chris Mathew</span>
<span class="d-block font-size-sm text-body">chris@example.com</span>
</div>
</a>
</td>
<td>18/12/2020</td>
<td>Switzerland <span class="text-hide">Code: CH</span></td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img7.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Clarice Boone <i class="tio-verified text-primary" data-toggle="tooltip" data-placement="top" title="Top endorsed"></i></span>
<span class="d-block font-size-sm text-body">clarice@example.com</span>
</div>
</a>
</td>
<td>17/03/2019</td>
<td>United Kingdom <span class="text-hide">Code: UK</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-dark avatar-circle mr-3">
<span class="avatar-initials">L</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Lewis Clarke</span>
<span class="d-block font-size-sm text-body">lewis@example.com</span>
</div>
</a>
</td>
<td>27/11/2020</td>
<td>Switzerland <span class="text-hide">Code: CH</span></td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img4.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Sam Kart</span>
<span class="d-block font-size-sm text-body">sam@example.com</span>
</div>
</a>
</td>
<td>09/06/2019</td>
<td>Canada <span class="text-hide">Code: CA</span></td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-danger avatar-circle mr-3">
<span class="avatar-initials">J</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Johnny Appleseed</span>
<span class="d-block font-size-sm text-body">johnny@example.com</span>
</div>
</a>
</td>
<td>10/04/2019</td>
<td>United States <span class="text-hide">Code: US</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-danger avatar-circle mr-3">
<span class="avatar-initials">P</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Phileas Fogg</span>
<span class="d-block font-size-sm text-body">phileas@example.com</span>
</div>
</a>
</td>
<td>13/10/2020</td>
<td>Spain <span class="text-hide">Code: ES</span></td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img6.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Mark Williams <i class="tio-verified text-primary" data-toggle="tooltip" data-placement="top" title="Top endorsed"></i></span>
<span class="d-block font-size-sm text-body">mark@example.com</span>
</div>
</a>
</td>
<td>26/09/2020</td>
<td>United Kingdom <span class="text-hide">Code: GB</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-dark avatar-circle mr-3">
<span class="avatar-initials">T</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Timothy Silva</span>
<span class="d-block font-size-sm text-body">timothy@example.com</span>
</div>
</a>
</td>
<td>03/09/2020</td>
<td>Italy <span class="text-hide">Code: IT</span></td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-dark avatar-circle mr-3">
<span class="avatar-initials">G</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Gary Bishop <i class="tio-verified text-primary" data-toggle="tooltip" data-placement="top" title="Top endorsed"></i></span>
<span class="d-block font-size-sm text-body">gary@example.com</span>
</div>
</a>
</td>
<td>25/06/2019</td>
<td>Latvia <span class="text-hide">Code: LV</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-dark avatar-circle mr-3">
<span class="avatar-initials">Y</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Yorker Scogings</span>
<span class="d-block font-size-sm text-body">yorker@example.com</span>
</div>
</a>
</td>
<td>12/12/2020</td>
<td>Norway <span class="text-hide">Code: NO</span></td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-info avatar-circle mr-3">
<span class="avatar-initials">F</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Frank Phillips</span>
<span class="d-block font-size-sm text-body">frank@example.com</span>
</div>
</a>
</td>
<td>20/09/2019</td>
<td>Norway <span class="text-hide">Code: NO</span></td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle mr-3">
<span class="avatar-initials">E</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Elizabeth Carter</span>
<span class="d-block font-size-sm text-body">eliz@example.com</span>
</div>
</a>
</td>
<td>09/10/2019</td>
<td>United States <span class="text-hide">Code: UK</span></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>
<!-- End Card -->
<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>
$(document).on('ready', function () {
// initialization of daterangepicker
var startDate = null,
endDate = null;
// initialization of datatables
var datatable = $.HSCore.components.HSDatatables.init($('#datatableDatepickerFilter'), {
"ordering": false
});
// initialization of daterangepicker
$('.js-daterangepicker').each(function () {
var d = $.HSCore.components.HSDaterangepicker.init($(this));
});
$('.js-daterangepicker').on('apply.daterangepicker', function(ev, picker) {
$(this).val(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'));
datatable.draw();
});
$('.js-daterangepicker').on('cancel.daterangepicker', function(ev, picker) {
$(this).val('');
startDate = null;
endDate = null;
datatable.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
Name | Position | Country | Status |
---|---|---|---|
Amanda Harvey
amanda@example.com
|
Director Human resources | United Kingdom Code: GB | Active |
A
Anne Richard
anne@example.com
|
Seller Branding products | United States Code: US | Pending |
David Harrison
david@example.com
|
Unknown Unknown | United States Code: US | Active |
Finch Hoot
finch@example.com
|
Designer IT department | Argentina Code: AR | Suspended |
B
Bob Dean
bob@example.com
|
Executive director Marketing | Austria Code: AT | Active |
<!-- Card -->
<div class="card">
<div class="card-header">
<h4 class="card-header-title">Users</h4>
<!-- Unfold -->
<div class="hs-unfold">
<a class="js-hs-unfold-invoker btn btn-icon btn-sm btn-ghost-secondary rounded-circle" href="javascript:;"
data-hs-unfold-options='{
"target": "#showHideDropdown",
"type": "css-animation"
}'>
<i class="tio-table"></i>
</a>
<div id="showHideDropdown" class="hs-unfold-content dropdown-unfold dropdown-menu dropdown-menu-right dropdown-card" style="width: 15rem;">
<div class="card card-sm">
<div class="card-body">
<div class="d-flex justify-content-between align-items-center mb-3">
<span class="mr-2">Country</span>
<!-- Checkbox Switch -->
<label class="toggle-switch toggle-switch-sm" for="toggleColumn_country">
<input type="checkbox" class="toggle-switch-input" id="toggleColumn_country" checked>
<span class="toggle-switch-label">
<span class="toggle-switch-indicator"></span>
</span>
</label>
<!-- End Checkbox Switch -->
</div>
<div class="d-flex justify-content-between align-items-center mb-3">
<span class="mr-2">Position</span>
<!-- Checkbox Switch -->
<label class="toggle-switch toggle-switch-sm" for="toggleColumn_position">
<input type="checkbox" class="toggle-switch-input" id="toggleColumn_position" checked>
<span class="toggle-switch-label">
<span class="toggle-switch-indicator"></span>
</span>
</label>
<!-- End Checkbox Switch -->
</div>
<div class="d-flex justify-content-between align-items-center">
<span class="mr-2">Status</span>
<!-- Checkbox Switch -->
<label class="toggle-switch toggle-switch-sm" for="toggleColumn_status">
<input type="checkbox" class="toggle-switch-input" id="toggleColumn_status" checked>
<span class="toggle-switch-label">
<span class="toggle-switch-indicator"></span>
</span>
</label>
<!-- End Checkbox Switch -->
</div>
</div>
</div>
</div>
</div>
<!-- End Unfold -->
</div>
<!-- Table -->
<div class="table-responsive datatable-custom">
<table id="columnSorting" class="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="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img10.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Amanda Harvey <i class="tio-verified text-primary" data-toggle="tooltip" data-placement="top" title="Top endorsed"></i></span>
<span class="d-block font-size-sm text-body">amanda@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Director</span>
<span class="d-block font-size-sm">Human resources</span>
</td>
<td>United Kingdom <span class="text-hide">Code: GB</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle mr-3">
<span class="avatar-initials">A</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Anne Richard</span>
<span class="d-block font-size-sm text-body">anne@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Seller</span>
<span class="d-block font-size-sm">Branding products</span>
</td>
<td>United States <span class="text-hide">Code: US</span></td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img3.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">David Harrison</span>
<span class="d-block font-size-sm text-body">david@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block font-size-sm">Unknown</span>
</td>
<td>United States <span class="text-hide">Code: US</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img5.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Finch Hoot</span>
<span class="d-block font-size-sm text-body">finch@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Designer</span>
<span class="d-block font-size-sm">IT department</span>
</td>
<td>Argentina <span class="text-hide">Code: AR</span></td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-dark avatar-circle mr-3">
<span class="avatar-initials">B</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Bob Dean</span>
<span class="d-block font-size-sm text-body">bob@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Executive director</span>
<span class="d-block font-size-sm">Marketing</span>
</td>
<td>Austria <span class="text-hide">Code: AT</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
</tbody>
</table>
</div>
<!-- End Table -->
</div>
<!-- End Card -->
<script>
$(document).on('ready', function () {
// initialization of datatables
var datatable = $.HSCore.components.HSDatatables.init($('#columnSorting'));
$('#toggleColumn_position').change(function (e) {
datatableSortingColumn.columns(1).visible(e.target.checked)
})
$('#toggleColumn_country').change(function (e) {
datatable.columns(2).visible(e.target.checked)
})
$('#toggleColumn_status').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 Code: GB | Active | |
A
Anne Richard
anne@example.com
|
Seller Branding products | United States Code: US | Pending | |
David Harrison
david@example.com
|
Unknown Unknown | United States Code: US | Active | |
Finch Hoot
finch@example.com
|
Designer IT department | Argentina Code: AR | Suspended | |
B
Bob Dean
bob@example.com
|
Executive director Marketing | Austria Code: AT | Active |
<!-- Card -->
<div class="card">
<div class="card-header">
<h4 class="card-header-title">Users</h4>
</div>
<!-- Table -->
<div class="table-responsive datatable-custom">
<table id="dragndropDatatables" class="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-pr-0">
<i class="sortablejs-custom-handle tio-drag list-group-icon"></i>
</td>
<td class="table-column-pl-0">
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img10.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Amanda Harvey <i class="tio-verified text-primary" data-toggle="tooltip" data-placement="top" title="Top endorsed"></i></span>
<span class="d-block font-size-sm text-body">amanda@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Director</span>
<span class="d-block font-size-sm">Human resources</span>
</td>
<td>United Kingdom <span class="text-hide">Code: GB</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td class="table-column-pr-0">
<i class="sortablejs-custom-handle tio-drag list-group-icon"></i>
</td>
<td class="table-column-pl-0">
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle mr-3">
<span class="avatar-initials">A</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Anne Richard</span>
<span class="d-block font-size-sm text-body">anne@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Seller</span>
<span class="d-block font-size-sm">Branding products</span>
</td>
<td>United States <span class="text-hide">Code: US</span></td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td class="table-column-pr-0">
<i class="sortablejs-custom-handle tio-drag list-group-icon"></i>
</td>
<td class="table-column-pl-0">
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img3.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">David Harrison</span>
<span class="d-block font-size-sm text-body">david@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block font-size-sm">Unknown</span>
</td>
<td>United States <span class="text-hide">Code: US</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td class="table-column-pr-0">
<i class="sortablejs-custom-handle tio-drag list-group-icon"></i>
</td>
<td class="table-column-pl-0">
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img5.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Finch Hoot</span>
<span class="d-block font-size-sm text-body">finch@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Designer</span>
<span class="d-block font-size-sm">IT department</span>
</td>
<td>Argentina <span class="text-hide">Code: AR</span></td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td class="table-column-pr-0">
<i class="sortablejs-custom-handle tio-drag list-group-icon"></i>
</td>
<td class="table-column-pl-0">
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-dark avatar-circle mr-3">
<span class="avatar-initials">B</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Bob Dean</span>
<span class="d-block font-size-sm text-body">bob@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Executive director</span>
<span class="d-block font-size-sm">Marketing</span>
</td>
<td>Austria <span class="text-hide">Code: AT</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
</tbody>
</table>
</div>
<!-- End Table -->
</div>
<!-- End Card -->
<!-- JS Implementing Plugins -->
<script src="../node_modules/sortablejs/Sortable.min.js"></script>
<!-- JS Front -->
<script src="../assets/js/hs.sortable.js"></script>
<script>
$(document).on('ready', function () {
// initialization of datatables
var datatable = $.HSCore.components.HSDatatables.init($('#dragndropDatatables'));
// initialization of sortable
$('.js-sortable').each(function () {
var sortable = $.HSCore.components.HSSortable.init($(this));
});
});
</script>
Export options
This example uses Unfold library.
Name | Position | Country | Status |
---|---|---|---|
Amanda Harvey
amanda@example.com
|
Director Human resources | United Kingdom Code: GB | Active |
A
Anne Richard
anne@example.com
|
Seller Branding products | United States Code: US | Pending |
David Harrison
david@example.com
|
Unknown Unknown | United States Code: US | Active |
Finch Hoot
finch@example.com
|
Designer IT department | Argentina Code: AR | Suspended |
B
Bob Dean
bob@example.com
|
Executive director Marketing | Austria Code: AT | Active |
<!-- Card -->
<div class="card">
<div class="card-header">
<h4 class="card-header-title">Users</h4>
</div>
<!-- Table -->
<div class="table-responsive datatable-custom">
<table id="exportOptionsDatatables" class="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="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img10.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Amanda Harvey <i class="tio-verified text-primary" data-toggle="tooltip" data-placement="top" title="Top endorsed"></i></span>
<span class="d-block font-size-sm text-body">amanda@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Director</span>
<span class="d-block font-size-sm">Human resources</span>
</td>
<td>United Kingdom <span class="text-hide">Code: GB</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle mr-3">
<span class="avatar-initials">A</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Anne Richard</span>
<span class="d-block font-size-sm text-body">anne@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Seller</span>
<span class="d-block font-size-sm">Branding products</span>
</td>
<td>United States <span class="text-hide">Code: US</span></td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img3.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">David Harrison</span>
<span class="d-block font-size-sm text-body">david@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block font-size-sm">Unknown</span>
</td>
<td>United States <span class="text-hide">Code: US</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img5.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Finch Hoot</span>
<span class="d-block font-size-sm text-body">finch@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Designer</span>
<span class="d-block font-size-sm">IT department</span>
</td>
<td>Argentina <span class="text-hide">Code: AR</span></td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-dark avatar-circle mr-3">
<span class="avatar-initials">B</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Bob Dean</span>
<span class="d-block font-size-sm text-body">bob@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Executive director</span>
<span class="d-block font-size-sm">Marketing</span>
</td>
<td>Austria <span class="text-hide">Code: AT</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
</tbody>
</table>
</div>
<!-- End Table -->
</div>
<!-- End Card -->
<!-- JS Implementing Plugins -->
<script src="../assets/vendor/hs-unfold/dist/hs-unfold.min.js"></script>
<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>
<!-- JS Front -->
<script src="../assets/js/hs.sortable.js"></script>
<script>
$(document).on('ready', function () {
// initialization of unfold
$('.js-hs-unfold-invoker').each(function () {
var unfold = new HSUnfold($(this)).init();
});
// initialization of datatables
var datatable = $.HSCore.components.HSDatatables.init($('#exportOptionsDatatables'), {
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'
},
]
});
$('#export-copy').click(() => {
datatable.button('.buttons-copy').trigger()
});
$('#export-excel').click(() => {
datatable.button('.buttons-excel').trigger()
});
$('#export-csv').click(() => {
datatable.button('.buttons-csv').trigger()
});
$('#export-pdf').click(() => {
datatable.button('.buttons-pdf').trigger()
});
$('#export-print').click(() => {
datatable.button('.buttons-print').trigger()
});
});
</script>
Column fixed
Users
Name | Position | Country | Status | Position | Country | Status |
---|---|---|---|---|---|---|
Amanda Harvey
amanda@example.com
|
Director Human resources | United Kingdom Code: GB | Active | Director Human resources | United Kingdom Code: GB | Active |
A
Anne Richard
anne@example.com
|
Seller Branding products | United States Code: US | Pending | Seller Branding products | United States Code: US | Pending |
David Harrison
david@example.com
|
Unknown Unknown | United States Code: US | Active | Unknown Unknown | United States Code: US | Active |
Finch Hoot
finch@example.com
|
Designer IT department | Argentina Code: AR | Suspended | Designer IT department | Argentina Code: AR | Suspended |
B
Bob Dean
bob@example.com
|
Executive director Marketing | Austria Code: AT | Active | Executive director Marketing | Austria Code: AT | Active |
<!-- Card -->
<div class="card">
<div class="card-header">
<h4 class="card-header-title">Users</h4>
</div>
<!-- Table -->
<div class="table-responsive datatable-custom datatable-custom-centered">
<table id="stickyColumnDatatables" class="table table-borderless table-thead-bordered table-nowrap table-align-middle card-table"
data-hs-datatables-options='{
"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>
</tr>
</thead>
<tbody>
<tr>
<td class="bg-white">
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img10.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Amanda Harvey <i class="tio-verified text-primary" data-toggle="tooltip" data-placement="top" title="Top endorsed"></i></span>
<span class="d-block font-size-sm text-body">amanda@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Director</span>
<span class="d-block font-size-sm">Human resources</span>
</td>
<td>United Kingdom <span class="text-hide">Code: GB</span></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 font-size-sm">Human resources</span>
</td>
<td>United Kingdom <span class="text-hide">Code: GB</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td class="bg-white">
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle mr-3">
<span class="avatar-initials">A</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Anne Richard</span>
<span class="d-block font-size-sm text-body">anne@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Seller</span>
<span class="d-block font-size-sm">Branding products</span>
</td>
<td>United States <span class="text-hide">Code: US</span></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 font-size-sm">Branding products</span>
</td>
<td>United States <span class="text-hide">Code: US</span></td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td class="bg-white">
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img3.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">David Harrison</span>
<span class="d-block font-size-sm text-body">david@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block font-size-sm">Unknown</span>
</td>
<td>United States <span class="text-hide">Code: US</span></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 font-size-sm">Unknown</span>
</td>
<td>United States <span class="text-hide">Code: US</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td class="bg-white">
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img5.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Finch Hoot</span>
<span class="d-block font-size-sm text-body">finch@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Designer</span>
<span class="d-block font-size-sm">IT department</span>
</td>
<td>Argentina <span class="text-hide">Code: AR</span></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 font-size-sm">IT department</span>
</td>
<td>Argentina <span class="text-hide">Code: AR</span></td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td class="bg-white">
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-dark avatar-circle mr-3">
<span class="avatar-initials">B</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Bob Dean</span>
<span class="d-block font-size-sm text-body">bob@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Executive director</span>
<span class="d-block font-size-sm">Marketing</span>
</td>
<td>Austria <span class="text-hide">Code: AT</span></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 font-size-sm">Marketing</span>
</td>
<td>Austria <span class="text-hide">Code: AT</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
</tbody>
</table>
</div>
<!-- End Table -->
</div>
<!-- End Card -->
<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>
<script>
$(document).on('ready', function () {
// initialization of datatables
$.HSCore.components.HSDatatables.init($('#stickyColumnDatatables'));
});
</script>
Header with fixed height
Users
Name | Position | Country | Status |
---|---|---|---|
Amanda Harvey
amanda@example.com
|
Director Human resources | United Kingdom Code: GB | Active |
A
Anne Richard
anne@example.com
|
Seller Branding products | United States Code: US | Pending |
David Harrison
david@example.com
|
Unknown Unknown | United States Code: US | Active |
Finch Hoot
finch@example.com
|
Designer IT department | Argentina Code: AR | Suspended |
B
Bob Dean
bob@example.com
|
Executive director Marketing | Austria Code: AT | Active |
Amanda Harvey
amanda@example.com
|
Director Human resources | United Kingdom Code: GB | Active |
A
Anne Richard
anne@example.com
|
Seller Branding products | United States Code: US | Pending |
David Harrison
david@example.com
|
Unknown Unknown | United States Code: US | Active |
Finch Hoot
finch@example.com
|
Designer IT department | Argentina Code: AR | Suspended |
B
Bob Dean
bob@example.com
|
Executive director Marketing | Austria Code: AT | Active |
<!-- Card -->
<div class="card">
<div class="card-header">
<h4 class="card-header-title">Users</h4>
</div>
<!-- Table -->
<div class="table-responsive datatable-custom">
<table id="datatableHeaderFixedWithHeight" class="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="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img10.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Amanda Harvey <i class="tio-verified text-primary" data-toggle="tooltip" data-placement="top" title="Top endorsed"></i></span>
<span class="d-block font-size-sm text-body">amanda@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Director</span>
<span class="d-block font-size-sm">Human resources</span>
</td>
<td>United Kingdom <span class="text-hide">Code: GB</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle mr-3">
<span class="avatar-initials">A</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Anne Richard</span>
<span class="d-block font-size-sm text-body">anne@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Seller</span>
<span class="d-block font-size-sm">Branding products</span>
</td>
<td>United States <span class="text-hide">Code: US</span></td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img3.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">David Harrison</span>
<span class="d-block font-size-sm text-body">david@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block font-size-sm">Unknown</span>
</td>
<td>United States <span class="text-hide">Code: US</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img5.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Finch Hoot</span>
<span class="d-block font-size-sm text-body">finch@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Designer</span>
<span class="d-block font-size-sm">IT department</span>
</td>
<td>Argentina <span class="text-hide">Code: AR</span></td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-dark avatar-circle mr-3">
<span class="avatar-initials">B</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Bob Dean</span>
<span class="d-block font-size-sm text-body">bob@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Executive director</span>
<span class="d-block font-size-sm">Marketing</span>
</td>
<td>Austria <span class="text-hide">Code: AT</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img10.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Amanda Harvey <i class="tio-verified text-primary" data-toggle="tooltip" data-placement="top" title="Top endorsed"></i></span>
<span class="d-block font-size-sm text-body">amanda@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Director</span>
<span class="d-block font-size-sm">Human resources</span>
</td>
<td>United Kingdom <span class="text-hide">Code: GB</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-primary avatar-circle mr-3">
<span class="avatar-initials">A</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Anne Richard</span>
<span class="d-block font-size-sm text-body">anne@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Seller</span>
<span class="d-block font-size-sm">Branding products</span>
</td>
<td>United States <span class="text-hide">Code: US</span></td>
<td>
<span class="legend-indicator bg-warning"></span>Pending
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img3.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">David Harrison</span>
<span class="d-block font-size-sm text-body">david@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Unknown</span>
<span class="d-block font-size-sm">Unknown</span>
</td>
<td>United States <span class="text-hide">Code: US</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-circle mr-3">
<img class="avatar-img" src="../assets/img/160x160/img5.jpg" alt="Image Description">
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Finch Hoot</span>
<span class="d-block font-size-sm text-body">finch@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Designer</span>
<span class="d-block font-size-sm">IT department</span>
</td>
<td>Argentina <span class="text-hide">Code: AR</span></td>
<td>
<span class="legend-indicator bg-danger"></span>Suspended
</td>
</tr>
<tr>
<td>
<a class="media align-items-center" href="../user-profile.html">
<div class="avatar avatar-soft-dark avatar-circle mr-3">
<span class="avatar-initials">B</span>
</div>
<div class="media-body">
<span class="d-block h5 text-hover-primary mb-0">Bob Dean</span>
<span class="d-block font-size-sm text-body">bob@example.com</span>
</div>
</a>
</td>
<td>
<span class="d-block h5 mb-0">Executive director</span>
<span class="d-block font-size-sm">Marketing</span>
</td>
<td>Austria <span class="text-hide">Code: AT</span></td>
<td>
<span class="legend-indicator bg-success"></span>Active
</td>
</tr>
</tbody>
</table>
</div>
<!-- End Table -->
</div>
<!-- End Card -->
<script>
$(document).on('ready', function () {
// initialization of datatables
$.HSCore.components.HSDatatables.init($('#datatableHeaderFixedWithHeight'));
});
</script>
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>
// Data for collapsible rows table
var 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>';
}
$(document).on('ready', function () {
// initialization of datatables
var datatableCollapasble = $.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: []
});
// Add event listener for opening and closing details
$('#datatableChildRows tbody').on('click', 'td.details-control', function () {
var tr = $(this).closest('tr');
var row = datatableCollapasble.row( tr );
if ( row.child.isShown() ) {
// This row is already open - close it
row.child.hide();
tr.removeClass('shown');
}
else {
// Open this row
row.child( format(row.data()) ).show();
tr.addClass('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> |