Added INITIAL FILTER to LA akzeptieren

Initial filter is: erteilte LA.
Now these rows are presented to the user when loading the page.
This commit is contained in:
Cris
2019-10-24 14:08:23 +02:00
committed by hainberg
parent e68337c685
commit bceb11b420
2 changed files with 14 additions and 0 deletions
@@ -152,6 +152,19 @@ $this->load->view(
return parseFloat(rowValue) == headerValue;
}
// -----------------------------------------------------------------------------------------------------------------
// Custom filters
// -----------------------------------------------------------------------------------------------------------------
// Filters erteilte initially
function func_initialFilter(){
return [
{field: 'bestellt', type: '!=', value: null}, // bestellt
{field: 'erteilt', type: '!=', value: null}, // AND erteilt
{field: 'akzeptiert', type: '=', value: null} // AND NOT akzeptiert
]
}
// -----------------------------------------------------------------------------------------------------------------
// Tabulator table format functions
// -----------------------------------------------------------------------------------------------------------------
@@ -327,6 +327,7 @@ $filterWidgetArray = array(
selectableCheck: function(row){
return func_selectableCheck(row);
},
initialFilter: func_initialFilter(),
footerElement: func_footerElement(),
rowUpdated:function(row){
func_rowUpdated(row);