/syncfusion-vue:syncfusion-vue-query-builderfrom Syncfusion Vue UI Components
Comprehensive guide to implementing Syncfusion Vue Query Builder component using Vue 3 Composition API. Use this skill when building advanced filter interfaces, creating complex data query systems, or implementing dynamic rule-based filtering in Vue 3 applications. Covers query builder configuration, SQL query conversion, drag-and-drop filtering, customization, and state management with Vue 3 reactive patterns.
Ships in Syncfusion Vue UI Components. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A comprehensive guide for implementing and customizing the Syncfusion Vue Query Builder component using Vue 3 Composition API. The Query Builder is a powerful UI component for creating and managing complex filter conditions, with support for rule-based queries, multiple data types, SQL generation, and extensive customization options.
The Query Builder component provides a graphical interface for creating and editing complex filter rules. It outputs structured JSON that can be converted to SQL, Mongo queries, or custom predicates for filtering data. Key capabilities include:
📄 Read: references/getting-started.md
📄 Read: references/columns-and-operators.md
📄 Read: references/data-binding.md
📄 Read: references/rules-and-filtering.md
📄 Read: references/query-conversion.md
📄 Read: references/templates-and-customization.md
📄 Read: references/advanced-features.md
📄 Read: references/api-reference.md
<template>
<div class="query-builder-container">
<h1>Query Builder</h1>
<ejs-querybuilder
ref="qbRef"
width="100%"
:columns="columns"
:rule="initialRules"
@change="handleChange"
/>
<div class="actions">
<button @click="generateSQL" class="btn-primary">Generate SQL</button>
<button @click="resetQuery" class="btn-secondary">Reset</button>
</div>
<div v-if="sqlQuery" class="result">
<p><strong>SQL Query:</strong></p>
<code>{{ sqlQuery }}</code>
</div>
</div>
</template>
<script setup lang="ts">
import { ref, reactive } from 'vue';
import { QueryBuilderComponent } from '@syncfusion/ej2-vue-querybuilder';
import type { ColumnsModel, RuleModel } from '@syncfusion/ej2-vue-querybuilder';
// Template reference
const qbRef = ref<QueryBuilderComponent>();
// Columns definition
const columns: ColumnsModel[] = [
{ field: 'EmployeeID', label: 'Employee ID', type: 'number' },
{ field: 'FirstName', label: 'First Name', type: 'string' },
{ field: 'Title', label: 'Title', type: 'string' },
{ field: 'HireDate', label: 'Hire Date', type: 'date', format: 'dd/MM/yyyy' },
{ field: 'Country', label: 'Country', type: 'string' }
];
// Initial rules
const initialRules: RuleModel = {
condition: 'and',
rules: [
{
field: 'EmployeeID',
label: 'Employee ID',
operator: 'equal',
type: 'number',
value: 1001
}
]
};
// State
const sqlQuery = ref<string>('');
// Methods
const generateSQL = () => {
if (qbRef.value) {
sqlQuery.value = qbRef.value.getSqlFromRules() || '';
}
};
const resetQuery = () => {
if (qbRef.value) {
qbRef.value.reset();
sqlQuery.value = '';
}
};
const handleChange = () => {
console.log('Query changed');
};
</script>
<style>
.query-builder-container {
padding: 20px;
max-width: 800px;
margin: 0 auto;
}
.actions {
margin-top: 20px;
display: flex;
gap: 10px;
}
.btn-primary,
.btn-secondary {
padding: 10px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
}
.btn-primary {
background-color: #007bff;
color: white;
}
.btn-secondary {
background-color: #6c757d;
color: white;
}
.result {
margin-top: 20px;
padding: 15px;
background-color: #f8f9fa;
border: 1px solid #dee2e6;
border-radius: 4px;
}
code {
background-color: #f3f4f6;
padding: 10px;
display: block;
border-radius: 4px;
font-family: 'Courier New', monospace;
overflow-x: auto;
}
</style>
const qbRef = ref<QueryBuilderComponent>();
const generateSQL = () => {
const sqlQuery = qbRef.value?.getSqlFromRules();
console.log('Generated SQL:', sqlQuery);
// Send to backend for execution
};
const addFilter = () => {
qbRef.value?.addRules([
{
field: 'Country',
label: 'Country',
operator: 'equal',
type: 'string',
value: 'USA'
}
], 'group0');
};
const importFilter = (sqlString: string) => {
qbRef.value?.setRulesFromSql(sqlString);
};
<template>
<ejs-querybuilder
:columns="columns"
:summaryView="showSummary"
/>
<button @click="showSummary = !showSummary">
{{ showSummary ? 'Hide' : 'Show' }} Summary
</button>
</template>
<script setup>
import { ref } from 'vue';
const showSummary = ref(false);
</script>
| Prop | Type | Default | Purpose |
|---|---|---|---|
columns | ColumnsModel[] | - | Defines available fields and operators |
rule | RuleModel | {} | Initial filter rules |
dataSource | Object[] | DataManager | [] | Data for binding |
displayMode | 'Horizontal' | 'Vertical' | 'Horizontal' | Layout orientation |
allowDragAndDrop | boolean | false | Enable drag-drop rule management |
enablePersistence | boolean | false | Save state to localStorage |
enableRtl | boolean | false | Right-to-left layout |
allowValidation | boolean | false | Validate rule conditions |
summaryView | boolean | false | Show filtered query summary |
showButtons | ShowButtonsModel | defaults | Control add/delete button visibility |
maxGroupCount | number | 5 | Maximum nested group depth |
readonly | boolean | false | Make component read-only |
Create a filter interface for users to build complex search queries with multiple conditions:
showButtons to enable rule managementRead: references/rules-and-filtering.md and references/query-conversion.md
Build a dashboard where users filter data across multiple columns:
Read: references/data-binding.md and references/rules-and-filtering.md
Allow users to save and load filter templates:
enablePersistence={true} for automatic state savinggetRules() to databasesetRules() when neededRead: references/advanced-features.md
Create a report filter UI with custom templates:
allowValidationsummaryView for clarityRead: references/templates-and-customization.md and references/advanced-features.md
Need help? Check the specific reference files above for detailed examples and implementation patterns.
references/accessibility-styling.md (opens in a new tab)references/advanced-features.md (opens in a new tab)references/api-reference.md (opens in a new tab)references/columns-and-operators.md (opens in a new tab)references/data-binding.md (opens in a new tab)references/getting-started.md (opens in a new tab)references/import-export.md (opens in a new tab)references/query-conversion.md (opens in a new tab)references/rules-and-filtering.md (opens in a new tab)references/templates-and-customization.md (opens in a new tab)references/templates.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub syncfusion/boldcreate-plugins --plugin syncfusion-vue49 skills in this plugin
/syncfusion-vue-3d-chartImplementing Syncfusion Vue 3D Chart component for interactive 3D data visualization. Use this skill ALWAYS when user needs to create 3D charts, visualize data in 3D columns/bars, customize 3D chart axes, configure 3D chart types, style 3D chart appearance, implement user interactions like tooltips and selection, or export/print 3D charts. Essential for displaying multidimensional data with rotation, perspective, and enhanced visual appeal./syncfusion-vue-3d-circular-chartCreate interactive 3D pie and donut charts using Syncfusion Vue components. Use this skill whenever the user needs to visualize data as circular/pie charts with 3D perspective, create donut visualizations, add data labels to charts, customize chart legends, tooltips, empty points and animations. Trigger when user mentions 3D charts, pie charts, donut charts, circular visualizations, 3D pie, data visualization, chart rotation, chart interactivity, or circular types./syncfusion-vue-accumulation-chartMaster Syncfusion Vue Accumulation Charts for building pie, doughnut, funnel, and pyramid visualizations. Always includes data binding, legend configuration, data labels, and accessibility features. Immediately implement any chart type, customize styling, configure legends, format data labels, and add drill-down interactivity using ALWAYS comprehensive examples and patterns.Other plugins' skills for the same job