MCPInstall

syncfusion-angular-query-builder

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.

Installs
311
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/syncfusion/angular-ui-components-skills --skill syncfusion-angular-query-builder
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads syncfusion-angular-query-builder automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Implementing Syncfusion Angular Query Builder

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.

Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Installing @syncfusion/ej2-angular-querybuilder
  • Setting up CSS/theme imports (Material3)
  • Creating a basic Query Builder with columns
  • Rendering with an initial rule
  • Running the Angular application

Columns Configuration

📄 Read: references/columns.md

  • Defining columns with field, label, type
  • Auto-generating columns from dataSource
  • Configuring operators per column (full operators table)
  • Setting step values for number fields
  • Formatting date and number values
  • Enabling validation (allowValidation, isRequired, min/max)

Data Binding

📄 Read: references/data-binding.md

  • Local data binding with JS arrays (JsonAdaptor) — recommended and safe
  • Complex/nested data binding with sub-columns
  • ⚠️ Remote DataManager (OData, WebApiAdaptor) patterns documented in this reference are not recommended — see Security & Trust Boundary below before use

Filtering & Rules Management

📄 Read: references/filtering-and-rules.md

  • Adding/deleting conditions with addRules / deleteRules
  • Adding/deleting groups with addGroups / deleteGroups
  • Cloning rules/groups (cloneRule, cloneGroup)
  • Locking rules/groups (lockRule, lockGroup)
  • Separate connectors between rules (enableSeparateConnector)
  • Restricting group nesting depth (maxGroupCount)
  • Drag-and-drop rule reordering (allowDragAndDrop)
  • Controlling button visibility (showButtons)

Import & Export

📄 Read: references/import-export.md

  • Importing from JSON (initial rule property + setRules)
  • Importing from SQL (inline, parameterized, named parameterized)
  • Importing from MongoDB (setMongoQuery)
  • Exporting to JSON (getRules)
  • Exporting to SQL (inline, parameterized, named parameterized)
  • Exporting to MongoDB (getMongoQuery)

Templates & Model Binding

📄 Read: references/templates.md

  • Custom header template with dropdown, split-button, NOT condition
  • Column template with create / write / destroy pattern
  • Using NgTemplate for column value inputs
  • Rule template (ruleTemplate + actionBegin event)
  • Model binding for field, operator, value inputs (fieldModel, operatorModel, valueModel)

Style, Appearance & Layout

📄 Read: references/style-and-appearance.md

  • CSS class customization table
  • Theme Studio integration
  • Display modes: horizontal (default) vs. vertical (displayMode)
  • Summary view (summaryView)
  • RTL support (enableRtl)
  • State persistence (enablePersistence)

Accessibility & Localization

📄 Read: references/accessibility-and-localization.md

  • WCAG 2.2, Section 508, WAI-ARIA compliance
  • Keyboard navigation shortcuts
  • Localization setup and full locale key reference
  • Sort columns display (sortDirection)

API Reference

📄 Read: references/api.md

  • Complete Properties reference (40+ properties)
  • Complete Methods reference (30+ methods)
  • Complete Events reference (7 events)
  • Type definitions and interfaces
  • Official Syncfusion documentation links

Quick Start Example

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

Common Patterns

Pattern 1: Export rules to SQL for backend use

// 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());
}

Pattern 2: Load rules at runtime

// After component renders, update rules dynamically
this.qb.setRules({
  condition: 'or',
  rules: [
    { field: 'City', operator: 'equal', value: 'London' },
    { field: 'Country', operator: 'equal', value: 'UK' }
  ]
});

Pattern 3: Programmatically add a condition

// Add a rule to the root group
this.qb.addRules([{ field: 'Title', operator: 'contains', value: 'Manager' }], 'querybuilder_group0');

Pattern 4: Enable drag-and-drop + clone + lock

<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 };

Key Properties

PropertyTypePurpose
[rule]RuleModelInitial 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]booleanEnable drag-and-drop rule/group reordering
[enableSeparateConnector]booleanDifferent AND/OR per rule instead of per group
[enableNotCondition]booleanShow NOT condition toggle on groups
[summaryView]booleanShow human-readable summary of current query
[enablePersistence]booleanPersist rules to localStorage across refreshes
[enableRtl]booleanRight-to-left layout for RTL languages
[displayMode]string'Horizontal' (default) or 'Vertical' layout
[maxGroupCount]numberMax number of nested groups (default: 5)
[sortDirection]stringSort field dropdown: 'Ascending' or 'Descending'
[allowValidation]booleanEnable field/operator/value validation
[showButtons]ShowButtonsControl visibility of action buttons

Key Methods

MethodPurpose
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

Common Use Cases

  • Admin dashboards: Let users build custom data filters without writing SQL
  • Report builders: Generate WHERE clause conditions for dynamic reports
  • Search interfaces: Visual query construction for complex search forms
  • Data export tools: Build MongoDB/SQL filters from a UI, pass to API
  • Saved searches: Export rules to JSON, store, and reload with setRules

Security & Trust Boundary

PROHIBITION — Read before implementing any data binding.

What is NOT permitted

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:

  • Auto-generate columns and operators directly from untrusted remote schema
  • Embed untrusted field names and values into exported SQL/MongoDB queries
  • Allow remote-controlled data to alter runtime behavior (predicates, rules, query structure)

This pattern must not be taught, scaffolded, or referenced as a recommended approach.

Required practices

RuleRequirement
Data sourceUse only local JS arrays (object[]) passed directly in the component. Never pass a DataManager instance pointing to an external URL.
Column definitionsAlways define columns explicitly via <e-columns> / [columns]. Never auto-generate columns from a remote or unknown data source.
Export sanitizationBefore 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 inputRules loaded via setRules() or setRulesFromSql() must come from your own trusted storage (e.g., your own database), never from an unvalidated external feed.
ValidationAlways set [allowValidation]="true" and [maxGroupCount] to reject malformed inputs at the UI layer before export.

FAQ

What does the syncfusion-angular-query-builder skill do?

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.

How do I install syncfusion-angular-query-builder?

Run npx skills add https://github.com/syncfusion/angular-ui-components-skills --skill syncfusion-angular-query-builder in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/syncfusion-angular-query-builder/ (personal) or .claude/skills/syncfusion-angular-query-builder/ (project).

Which AI agents can use syncfusion-angular-query-builder?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is syncfusion-angular-query-builder safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains syncfusion-angular-query-builder?

It is published by syncfusion in syncfusion/angular-ui-components-skills. It has 311 recorded installs.

More from syncfusion/angular-ui-components-skills

View all →

syncfusion-angular-grid

syncfusion/angular-ui-components-skills

Open the skill to read its SKILL.md instructions.

Frontend & Design342 installs

syncfusion-angular-common

syncfusion/angular-ui-components-skills

Common utilities and features for Syncfusion Angular components. Use this skill when the user needs to implement animations, drag-and-drop, state persistence, RTL support, localization, globalization, security, templates, and advanced features for Syncfusion Angular components.

Frontend & Design327 installs

syncfusion-angular-chart

syncfusion/angular-ui-components-skills

Implement Syncfusion Angular Chart component for professional data visualization. Use this when creating or customizing charts such as line, bar, column, area, pie, financial (candlestick, OHLC), scatter, bubble, or stock charts. Supports axes configuration, series binding, legends, tooltips, zooming, real-time updates, technical indicators, themes, export, and accessibility features.

Frontend & Design321 installs

syncfusion-angular-license

syncfusion/angular-ui-components-skills

Open the skill to read its SKILL.md instructions.

Frontend & Design319 installs

syncfusion-angular-themes

syncfusion/angular-ui-components-skills

Open the skill to read its SKILL.md instructions.

Frontend & Design319 installs

syncfusion-angular-rich-text-editor

syncfusion/angular-ui-components-skills

Open the skill to read its SKILL.md instructions.

Frontend & Design317 installs

Popular frontend & design skills

View category →

setup-matt-pocock-skills

mattpocock/skills

Configure this repo for the engineering skills: set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.

Frontend & Design1.1M installs

frontend-design

anthropics/skills

Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.

OfficialFrontend & Design1M installs

hyperframes-animation

heygen-com/hyperframes

All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.

prototype

mattpocock/skills

Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.

Frontend & Design999.2K installs

hyperframes-core

heygen-com/hyperframes

The HyperFrames composition contract — build one renderable project. Use for composition structure, the data- timing attributes, class="clip", tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.

Frontend & Design930.5K installs

vercel-react-best-practices

vercel-labs/agent-skills

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

OfficialFrontend & Design843.1K installs