Is there any way to create a querybuilder without operators?.
Example
let filters= [];
let filter;
filter= {
id: 'id',
label: 'id',
type: 'string'
};
filter.input = 'select';
filter.operators = ['equal']; //add the 'equal' operator to override the default operators that are added if not given
let v = ['id1', 'id2'].reduce(function(o, val) { o[val] = val; return o; }, {});
filter.values = v;
filters.push(filter);
$('#queryBuilderDiv').queryBuilder({
filters: filters,
select_placeholder: '--Select ID--',
});
This creates the below shown query builder
I would like to discard the operators and just let the user select an id as shown in the image below.
I tried to set filter.operators = []
but no luck since the query builder does not allow me to select a value without selecting an operator before.
Any ideas? Thanks beforehand :)