-
-
Notifications
You must be signed in to change notification settings - Fork 504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add custom control #1061
Comments
Do you want to add value/type switcher (as on 2nd screenshot) for "custom drop down" (on screenshot 1)? Or completely different component, not built-in value/type switcher? |
both are required for our use cases. |
As for 1st case, there should be 2+ fields of type select in your config. And you should use |
can you elaborate more or give give some sample since getting "Object literal may only specify known properties, but 'valueSources' does not exist in type 'SelectWidget<Config, SelectWidgetProps>'. Did you mean to write 'valueSrc'?ts(2561) |
I mean these lines in your code
Please try without it |
tried but still getting same |
Could you please create a sandbox to reproduce your issue? |
how about adding our custom component to the query builder? |
You can use |
any example can you share |
how can we add valueSources : ["value", "field", "ourCustomComponent"] on select of ourCustomComponent, my components should render |
|
Please share a sandbox to demonstrate your issue and requested change |
https://codesandbox.io/p/sandbox/modest-tdd-ywnc6g?file=%2Fsrc%2Fdemo%2Findex.jsx click on add rule and select optSet values |
You can render custom select like this:
But right now there is no way to store meta data for rule in store (as you can inspect from the props of renderBeforeWidget). |
No. But instead of |
https://codesandbox.io/p/sandbox/broken-flower-r9hqf9?file=%2Fsrc%2Fdemo%2Fconfig.jsx%3A109%2C20
|
cannot access your sandbox can you provide access |
how can we have multi-select |
How can we add the value and filed drop down for the type select [in the below code for option set] ?
can we add our custom component to the query builder?
The text was updated successfully, but these errors were encountered: