Try out this solution to solve your issue:
Javascript:
var table_widget = new Tabulator("#example", {
columns: [
{ title: "", field: "", bottomCalc: "count", headerFilter: "input" },
{ title: "", field: "", bottomCalc: "count", headerFilter: "input" },
{ title: "", field: "", bottomCalc: "count", headerFilter: "input" },
{ title: "", field: "", bottomCalc: "count",headerFilter: "input" },
{ title: "", field: "", bottomCalc: "count", headerFilter: "input" },
{ title: "", field: "", bottomCalc: "count", headerFilter: "input" },
],
dataFiltered: function(filters, rows) {
var element = document.getElementById("search_results_count");
element.innerHTML = rows.length;
},
dataLoaded: function(data) {
var element = document.getElementById("total_results_count");
element.innerHTML = data.length;
},
});
var total_results = $(".tabulator-footer").find('.tabulator-cell:first-child()').text();
$("#total_results_count").text(total_results);
// additional JS code here if needed.
CSS:
.tabulator-footer {
display: none;
}
HTML:
<span style="color:#102D4F;font-size:12px;font-family:Arial, Helvetica, sans-serif">
Displaying <span id="search_results_count"></span> results from a total of <span id="total_results_count"></span>
</span>
Credit: beNiceWeAlLearning