dabernathy89 / vue-query-builder

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

Add option to pass props to custom components #46

Open sorrentix opened 5 years ago

sorrentix commented 5 years ago

As per title, this will let us pass the props down to custom compoents by defining them in the rules. When using a custom component in the rule, one can set the customComponentProps to an object containing the props.

dabernathy89 commented 4 years ago

Hey @sorrentix - sorry for the long delay getting back to you on this. I'll test this out ASAP and get it merged in.

daptontdev1 commented 3 years ago

Did you fix the issue? Badly the props option is needed. @dabernathy89 @sorrentix

joseph-sm commented 3 years ago

@sorrentix @dabernathy89 I had to do this recently using vue-treeselect, I used loadOptions to add the root options async, this can all be achieved by just extending QueryBuilderRule.vue and using a custom-component rule @see Custom templates