This commit is contained in:
@@ -415,27 +415,9 @@ export default {
|
|||||||
this.obj.splice(newIndex, 0, this.obj.splice(index, 1)[0]);
|
this.obj.splice(newIndex, 0, this.obj.splice(index, 1)[0]);
|
||||||
},
|
},
|
||||||
addFilterCondition(item) {
|
addFilterCondition(item) {
|
||||||
//push tempFilter item into item.filter.items array
|
TODO: Need to also set a filter item DISPLAY property
|
||||||
// tempFilterOperator: null
|
//so that can display localized for user in the list and then
|
||||||
//tempFilterToken: "*yesterday*"
|
//change the list to use the DISPLAY property instead
|
||||||
//tempFilterValue: null
|
|
||||||
/*
|
|
||||||
FilterItem.fld = "widgetstartdate";
|
|
||||||
FilterItem.op = Util.OpEquality;
|
|
||||||
FilterItem.value = TokenYesterday;
|
|
||||||
|
|
||||||
Dates have special values in tempFilterToken that must be handled specially
|
|
||||||
if Date tempfiltertoken is *select* then no special value token is in use like YESTERDAY
|
|
||||||
|
|
||||||
|
|
||||||
ONLY OTHER POSSIBLE TOKEN:
|
|
||||||
every type can have in the tempfilterOperator two choices *NOVALUE* or *HASVALUE*,
|
|
||||||
otherwise it's a straight up filter operator
|
|
||||||
|
|
||||||
In all other cases than above tempfilterOperator is relevant and tempFilterValue is relevant
|
|
||||||
TODO: sample fragment of each kind as are done I guess
|
|
||||||
TODO: DataTAble needs to pre-process filter to substitute tokens on the fly before sending to the server
|
|
||||||
*/
|
|
||||||
var filterItem = { op: null, value: null };
|
var filterItem = { op: null, value: null };
|
||||||
var filterItemSet = false;
|
var filterItemSet = false;
|
||||||
//DATE relative token?
|
//DATE relative token?
|
||||||
|
|||||||
Reference in New Issue
Block a user