dabernathy89 / vue-query-builder

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

Slots #48

Closed amellini closed 4 years ago

amellini commented 4 years ago

It will be nice to have some slot to personalize a bit the main UI , some example:

dabernathy89 commented 4 years ago

@amellini sorry this took so long. I tried for a long time to figure out how to take advantage of slots to let people customize the query builder, but in the end they just weren't flexible enough. My solution was just to turn the query builder into a renderless component (with a default very similar to before). It is more work on the end user but provides much more ability to customize everything.

You can see the docs (still WIP) on that here:

https://dabernathy89.github.io/vue-query-builder/custom-templates.html#setting-up-your-vue-instance

amellini commented 4 years ago

Ok, thanks I'll take a look at your solution. I would have imagined component of the control, for example:

Thank you again