Implement custom action elements and query properties
React Query Builder allows replacing default components to implement custom logic:
- Multiple Action Elements: You can replace the default
addRuleActionwith a custom component. Useprops.schema.getQuery()to get the current state andprops.schema.dispatchQuery()to update the query with specific pre-selected fields. - Custom Query Properties: You can add non-standard properties (e.g.,
caseSensitive) to the query hierarchy and manage them via custom controls (like checkboxes) in the UI. These properties can then be handled by a custom rule processor during export (e.g., usingformatQueryto wrap fields in SQLLOWER()functions).