Subject: Inquiry about "custom operator matches" functionality in react-awesome-query-builder #949
Replies: 3 comments 9 replies
-
Please create a new issue. I need to support |
Beta Was this translation helpful? Give feedback.
5 replies
-
Just add to const operators: Operators = {
...InitialConfig.operators,
matches: {
label: "matches",
spelOp: ".matches", // <6.4
//spelOp: "${0}.matches(${1})", // 6.4+
},
}; And to import merge from "lodash/merge";
const types: Types = merge(
{},
InitialConfig.types,
{
text: {
widgets: {
text: {
operators: [
"matches",
...InitialConfig.types.text.widgets.text.operators,
],
}
},
}
}
);
const config: Config = {
...MuiConfig,
types,
operators,
}; |
Beta Was this translation helpful? Give feedback.
3 replies
-
Please remove fieldSettings: {
min: 0
},
preferWidgets: ["number"], as these props do not make sense for |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I hope you're doing well. I'm exploring the react-awesome-query-builder repository on GitHub (https://github.com/ukrbublik/react-awesome-query-builder) and I was wondering how to customize an operator with the functionality of regex matches.
Specifically, I would like to know if it's possible to create a custom operator for my project that uses the matches functionality with a regex pattern like matches('.*(01|11|41|52|63)$'), where I'm evaluating if an element ends with "01" or "11" and so on.
If the matches functionality is available for creating a result in SPEL (Structured Predicate Expression Language), and considering that it can also be used with the contains operator, I would like to leverage this regex matches functionality in Spel.
I appreciate your time and assistance in clarifying this matter.
Best regards,
Beta Was this translation helpful? Give feedback.
All reactions