Filter Mutations
This example demonstrates the mutation entry points for useWhereFilter and useHavingFilter.
Dependencies
- Packages:
@visactor/vbi-react,@visactor/vbi,react - Props:
buildershould contain at leastregionandsalesfields for demonstrating Where/Having mutations
Code Snippet
Expected Behavior
- After clicking buttons, Where/Having conditions are appended to the builder's filter tree.
- The clear buttons immediately remove the corresponding filter conditions.
- The JSON at the bottom can be used to confirm the current filter DSL structure.