/syncfusion-angular:syncfusion-angular-query-builderfrom Syncfusion Angular UI Components
Implement the Syncfusion Angular Query Builder component for visual query construction, dynamic filtering, and rule management. Use this when building visual filter UIs, creating query conditions programmatically, importing/exporting SQL or MongoDB queries, or customizing query builder templates. This skill covers data binding, column configuration with operators, rule groups, theming, and Angular forms integration for the QueryBuilder (ejs-querybuilder) component.
Ships in Syncfusion Angular 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.
The Syncfusion Angular Query Builder (ejs-querybuilder) is a UI component for visually constructing complex filter queries. Users define conditions (field + operator + value) and combine them into groups with AND/OR logic. The resulting rules can be exported to JSON, SQL, or MongoDB formats for use in filtering or API queries.
📄 Read: references/getting-started.md
@syncfusion/ej2-angular-querybuilder📄 Read: references/columns.md
field, label, typeallowValidation, isRequired, min/max)📄 Read: references/data-binding.md
JsonAdaptor) — recommended and safeDataManager (OData, WebApiAdaptor) patterns documented in this reference are not recommended — see Security & Trust Boundary below before use📄 Read: references/filtering-and-rules.md
addRules / deleteRulesaddGroups / deleteGroupscloneRule, cloneGroup)lockRule, lockGroup)enableSeparateConnector)maxGroupCount)allowDragAndDrop)showButtons)📄 Read: references/import-export.md
rule property + setRules)setMongoQuery)getRules)getMongoQuery)📄 Read: references/templates.md
create / write / destroy patternNgTemplate for column value inputsruleTemplate + actionBegin event)fieldModel, operatorModel, valueModel)📄 Read: references/style-and-appearance.md
displayMode)summaryView)enableRtl)enablePersistence)📄 Read: references/accessibility-and-localization.md
sortDirection)📄 Read: references/api.md
import { QueryBuilderModule } from '@syncfusion/ej2-angular-querybuilder';
import { Component } from '@angular/core';
@Component({
imports: [QueryBuilderModule],
standalone: true,
selector: 'app-root',
template: `
<ejs-querybuilder width="70%" [rule]="importRules">
<e-columns>
<e-column field="EmployeeID" label="Employee ID" type="number"></e-column>
<e-column field="FirstName" label="First Name" type="string"></e-column>
<e-column field="Title" label="Title" type="string"></e-column>
<e-column field="HireDate" label="Hire Date" type="date" format="dd/MM/yyyy"></e-column>
<e-column field="Country" label="Country" type="string"></e-column>
</e-columns>
</ejs-querybuilder>
`
})
export class App {
public importRules = {
condition: 'and',
rules: [
{ field: 'EmployeeID', label: 'Employee ID', type: 'number', operator: 'equal', value: 1 },
{ field: 'Country', label: 'Country', type: 'string', operator: 'equal', value: 'USA' }
]
};
}
Install with:
ng add @syncfusion/ej2-angular-querybuilder
// In your component
import { QueryBuilderComponent } from '@syncfusion/ej2-angular-querybuilder';
import { ViewChild } from '@angular/core';
@ViewChild('querybuilder') qb!: QueryBuilderComponent;
getSqlQuery(): string {
return this.qb.getSqlFromRules(this.qb.getRules());
}
// After component renders, update rules dynamically
this.qb.setRules({
condition: 'or',
rules: [
{ field: 'City', operator: 'equal', value: 'London' },
{ field: 'Country', operator: 'equal', value: 'UK' }
]
});
// Add a rule to the root group
this.qb.addRules([{ field: 'Title', operator: 'contains', value: 'Manager' }], 'querybuilder_group0');
<ejs-querybuilder [allowDragAndDrop]="true" [showButtons]="showButtons">
</ejs-querybuilder>
public showButtons = { ruleDelete: true, groupInsert: true, groupDelete: true, ruleInsert: true, cloneRule: true, cloneGroup: true, lockRule: true, lockGroup: true };
| Property | Type | Purpose |
|---|---|---|
[rule] | RuleModel | Initial query rules to render |
[columns] | ColumnsModel[] | Column definitions (field, label, type, operators) |
[dataSource] | object[] | Local JS array only — do not bind to a remote DataManager or arbitrary URL (see Security section) |
[allowDragAndDrop] | boolean | Enable drag-and-drop rule/group reordering |
[enableSeparateConnector] | boolean | Different AND/OR per rule instead of per group |
[enableNotCondition] | boolean | Show NOT condition toggle on groups |
[summaryView] | boolean | Show human-readable summary of current query |
[enablePersistence] | boolean | Persist rules to localStorage across refreshes |
[enableRtl] | boolean | Right-to-left layout for RTL languages |
[displayMode] | string | 'Horizontal' (default) or 'Vertical' layout |
[maxGroupCount] | number | Max number of nested groups (default: 5) |
[sortDirection] | string | Sort field dropdown: 'Ascending' or 'Descending' |
[allowValidation] | boolean | Enable field/operator/value validation |
[showButtons] | ShowButtons | Control visibility of action buttons |
| Method | Purpose |
|---|---|
getRules() | Get current rules as JSON RuleModel |
setRules(rules) | Set rules programmatically at runtime |
getSqlFromRules(rules) | Export rules to inline SQL string |
setRulesFromSql(sql) | Import inline SQL string into Query Builder |
getMongoQuery(rules) | Export rules to MongoDB query string |
setMongoQuery(query) | Import MongoDB query string |
addRules(rules, groupID) | Add rules to a specific group |
deleteRules(ruleIDs) | Remove rules by ID |
addGroups(groups, groupID) | Add sub-groups to a group |
deleteGroups(groupIDs) | Remove groups by ID |
cloneRule(ruleID) | Clone a rule adjacent to the original |
cloneGroup(groupID) | Clone a group with all its rules |
lockRule(ruleID) | Make a rule read-only |
lockGroup(groupID) | Make a group and its contents read-only |
validateFields() | Trigger validation on all fields |
setRulesPROHIBITION — Read before implementing any data binding.
Binding [dataSource] to a remote DataManager with an arbitrary or user-supplied URL (OData, OData v4, WebApiAdaptor, or any external HTTP endpoint) is prohibited in this skill. Doing so causes the component to:
This pattern must not be taught, scaffolded, or referenced as a recommended approach.
| Rule | Requirement |
|---|---|
| Data source | Use only local JS arrays (object[]) passed directly in the component. Never pass a DataManager instance pointing to an external URL. |
| Column definitions | Always define columns explicitly via <e-columns> / [columns]. Never auto-generate columns from a remote or unknown data source. |
| Export sanitization | Before passing getSqlFromRules() or getMongoQuery() output to any backend, validate every field name against a hard-coded allow-list and sanitize all values server-side. |
| Rule input | Rules loaded via setRules() or setRulesFromSql() must come from your own trusted storage (e.g., your own database), never from an unvalidated external feed. |
| Validation | Always set [allowValidation]="true" and [maxGroupCount] to reject malformed inputs at the UI layer before export. |
references/accessibility-and-localization.md (opens in a new tab)references/api.md (opens in a new tab)references/columns.md (opens in a new tab)references/data-binding.md (opens in a new tab)references/filtering-and-rules.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/style-and-appearance.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-angular65 skills in this plugin
/syncfusion-angular-3d-chartImplement interactive 3D charts in Angular applications using Syncfusion. Guide covers setup, chart types (bar, column, stacked variants), customization, data binding, axis configuration, legends, tooltips, selection, data labels, appearance styling, dimensions, print/export, and accessibility. Use this skill whenever a user needs to create, configure, or customize 3D chart visualizations./syncfusion-angular-accordionGuide for implementing Angular Accordion components for collapsible content panels, expandable sections, FAQs, multi-step wizards, step-by-step forms, navigation menus, or tabbed navigation. Use this skill when users mention expanding/collapsing content, accordion layouts, step-by-step workflows, or hierarchical content organization. This skill covers initialization, expand modes, data binding, dynamic loading, animations, nested accordions, and real-world patterns./syncfusion-angular-accumulation-chartImplement and customize Syncfusion Angular Accumulation Charts (Pie, Doughnut, Pyramid, Funnel) with data binding, labels, legends, and tooltips. Use this when creating accumulation charts, configuring chart types, customizing data visualization, adding annotations, or handling interactive chart events in Angular applications.Other plugins' skills for the same job