mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 16:44:28 +00:00
Moved empty table placeholder text to TableWidget
Now this is a standard behaviour of TableWidget.
This commit is contained in:
@@ -523,6 +523,7 @@ var FHC_TableWidget = {
|
||||
options.columns = arrayTabulatorColumns;
|
||||
options.data = data.dataset;
|
||||
options.tooltipsHeader = true; // set header tooltip with column title
|
||||
options.placeholder = _func_placeholder(); // display text when table is empty
|
||||
options.rowSelectionChanged = function(data, rows){
|
||||
_func_rowSelectionChanged(data, rows);
|
||||
};
|
||||
@@ -718,6 +719,13 @@ function _func_columnVisibilityChanged(column, visible){
|
||||
table.redraw();
|
||||
}
|
||||
|
||||
/*
|
||||
* Displays text when table is empty
|
||||
*/
|
||||
function _func_placeholder(){
|
||||
return "<h4>Keine Daten vorhanden.</h4>";
|
||||
}
|
||||
|
||||
// Returns TableWidget Header HTML (download-, setting button...)
|
||||
function _renderTabulatorHeaderHTML(tableWidgetDiv){
|
||||
|
||||
|
||||
Reference in New Issue
Block a user