Changed: Now Tablewidget defines headerFilterPlaceholder by default

Signed-off-by: cris-technikum <hainberg@technikum-wien.at>
This commit is contained in:
cris-technikum
2021-06-08 16:07:55 +02:00
parent bc4af57762
commit e6fc99f5be
6 changed files with 8 additions and 7 deletions
@@ -74,7 +74,6 @@ $filterWidgetArray = array(
layout: "fitColumns", // fit columns to width of table
persistentSort:true,
autoResize: false, // prevent auto resizing of table (false to allow adapting table size when cols are (de-)activated
headerFilterPlaceholder: " ",
index: "anrechnung_id", // assign specific column as unique id (important for row indexing)
selectable: true, // allow row selection
selectableRangeMode: "click", // allow range selection using shift end click on end of range
@@ -84,7 +84,6 @@ $filterWidgetArray = array(
layout: "fitColumns", // fit columns to width of table
persistentSort:true,
autoResize: false, // prevent auto resizing of table (false to allow adapting table size when cols are (de-)activated
headerFilterPlaceholder: " ",
index: "anrechnung_id", // assign specific column as unique id (important for row indexing)
selectable: true, // allow row selection
selectableRangeMode: "click", // allow range selection using shift end click on end of range
@@ -330,7 +330,6 @@ $filterWidgetArray = array(
height: func_height(this),
layout: "fitColumns", // fit columns to width of table
autoResize: false, // prevent auto resizing of table (false to allow adapting table size when cols are (de-)activated
headerFilterPlaceholder: " ",
index: "row_index", // assign specific column as unique id (important for row indexing)
selectable: true, // allow row selection
selectableRangeMode: "click", // allow range selection using shift end click on end of range
@@ -342,7 +342,6 @@ $filterWidgetArray = array(
layout: "fitColumns", // fit columns to width of table
layoutColumnsOnNewData: true, // ajust column widths to the data each time TableWidget is loaded
autoResize: false, // prevent auto resizing of table (false to allow adapting table size when cols are (de-)activated
headerFilterPlaceholder: " ",
groupBy:"lehrveranstaltung_id",
groupToggleElement:"header", //toggle group on click anywhere in the group header
groupHeader: function(value, count, data, group){
@@ -376,7 +376,6 @@ $filterWidgetArray = array(
layout:"fitColumns", // fit columns to width of table
layoutColumnsOnNewData: true, // ajust column widths to the data each time TableWidget is loaded
autoResize: false, // prevent auto resizing of table (false to allow adapting table size when cols are (de-)activated
headerFilterPlaceholder: " ",
groupBy:"lehrveranstaltung_id",
groupToggleElement:"header", //toggle group on click anywhere in the group header
groupHeader: function(value, count, data, group){
+8 -2
View File
@@ -548,8 +548,14 @@ var FHC_TableWidget = {
options.placeholder = _func_placeholder(); // display text when table is empty
options.persistenceID = data.tableUniqueId; // unique id to store persistence data separately for multiple tables
// Columns can be moved per default
if (options.movableColumns == undefined)
// Headerfilter should be empty by default
if (typeof(options.headerFilterPlaceholder) === 'undefined')
{
options.headerFilterPlaceholder = '';
}
// Columns can be moved by default
if (typeof(options.movableColumns) === 'undefined')
{
options.movableColumns = true; // allows changing column order
}