Hello Webix Team,
I want to dynamically render the value
field view(Combo or Datepicker) depending on the selection of key
.
I am trying to use the Querybuilder removeView
and addView
methods but I am not getting the selected values. My code: https://snippet.webix.com/3ncw1d3k
How can I dynamically render the last value field with custom view dynamically?
How can I dynamically render the last value
field depending on the first key
field selection?
In the below example, querybuilder .getValue() method doesn’t work - unable to get the last field date value, https://snippet.webix.com/3ncw1d3k - Not working as expected.
Screenshot: Code Snippet
Hello @sunface,
I want to dynamically render the value field view(Combo or Datepicker) depending on the selection of key.
The type
property determines the type of editor that will be present in the value
field. This property lets you assign a specific editor to specific keys (this way, you can assign editors with custom values, rules, etc.). For example: https://snippet.webix.com/x0a1iarc.
How can I dynamically render the last value field with custom view dynamically?
Could you please elaborate as to why you would need to replace the already assigned editors? To be fair, I can’t imagine a use case where this would be required.
Hello @Dzmitry ,
Thanks for the reply.
Could you please elaborate as to why you would need to replace the already assigned editors? To be fair, I can't imagine a use case where this would be required.
I have a use case, where I want to display the list of product names, category names, event titles , etc should be displayed as combo
select with search. These values are dynamically fetched from server through ajax depending on the key
field selection.
Screenshot: querybuilder.png
Thanks