Added table placeholders

This commit is contained in:
Pinga 2023-11-09 11:44:23 +02:00
parent 0bf5eda72c
commit 9312276fb6
8 changed files with 24 additions and 0 deletions

View file

@ -55,6 +55,9 @@
{title:"Status", field:"host_status", width:300, minWidth:200, formatter: statusFormatter, headerSort:false, download:false, responsive:2},
{title: "Actions", formatter: actionsFormatter, headerSort: false, download:false, hozAlign: "center", responsive:0, cellClick:function(e, cell){ e.stopPropagation(); }},
],
placeholder:function(){
return this.getHeaderFilters().length ? "No Matching Data" : "No Data"; //set placeholder based on if there are currently any header filters
}
});
var searchInput = document.getElementById("search-input");
searchInput.addEventListener("input", function () {