dabernathy89 / vue-query-builder

A UI component for building complex queries with nested conditionals.
https://dabernathy89.github.io/vue-query-builder/
MIT License
643 stars 157 forks source link

Is there a interface to overwrite the operators to like "=, !=, etc"? #51

Closed ytl18 closed 4 years ago

andreas83 commented 4 years ago

not sure if i understand you correctly. there is a option for operators

rules:[{
  type: "text",
  id: "key",
  label: "Key",
  operators : ['=', '<', '>', '!=','in']
}]

(btw: a nice feature would be having label and value ) i.e.

  operators : [
            {label: "Greater than", value: "<"},
            {label: "Not equal", value: "!="}
        ]
dabernathy89 commented 4 years ago

@andreas83 is correct - more detail here:

https://dabernathy89.github.io/vue-query-builder/configuration.html#rules

I'll see about adding support for labels & values on the operators. I don't see any reason that couldn't happen.

andreas83 commented 4 years ago

@dabernathy89 awesome, thanks