# jQWidgets documentation for Angular (full text) > Guides, tutorials and API references for the jQWidgets Angular UI components: data grids, charts, scheduler, Gantt, Kanban, editors, lists, navigation and layout. Version 27.1.0. Every page has a Markdown copy: its URL followed by .md. Live demos with source code: https://www.jqwidgets.com/angular/ Install: `ng add jqwidgets-ng` in an Angular 19 or later project; components are standalone: import `jqxGridModule` from `jqwidgets-ng/jqxgrid` into a component's `imports` (the same for every component). Start with the complete guide for AI assistants: https://www.jqwidgets.com/llms-full.txt (installation and tested examples for every framework, API conventions, themes, the AI features, the MCP server and every component in one file). More files: https://www.jqwidgets.com/angular-components-documentation/llms-full.txt (every guide in full, and the API in one line per member: for search and retrieval, larger than one context window), https://www.jqwidgets.com/angular-components-documentation/llms-api.txt (the API of every component, one line per member), https://www.jqwidgets.com/angular-components-documentation/llms/.txt (everything about one component, its full API included, e.g. https://www.jqwidgets.com/angular-components-documentation/llms/jqxgrid.txt). To read in one context: the complete guide above, then llms-api.txt, then the files of the components you use. License: a free Community License covers the components except Grid, TreeGrid, PivotGrid, Scheduler, DataTable, Chart, Gantt, Editor and Kanban; commercial licenses (perpetual, with source code) cover all of them: https://www.jqwidgets.com/license/ ## Start here --- ### Angular UI components for data-heavy apps Source: https://www.jqwidgets.com/angular-components-documentation/ > Angular UI components for data-heavy apps: data grid, scheduler, Gantt, Kanban, 30+ chart types and pivot tables. 67 components, 860+ live demos. jQWidgets for Angular · version 27 · Angular 22, standalone Grids that stay fast with 100,000 rows, a scheduler, Gantt and Kanban boards, 30+ chart types, pivot tables and every editor a business app needs: 67 standalone Angular components with typed inputs and outputs. - **67** components - **860+** live demos with source - **45+** themes, light and dark - **4** frameworks, one API All 67 components, by category #### Why teams build with jQWidgets - Fast with big data Virtual scrolling, paging and server-side modes keep a grid of 100,000 rows responsive, and live cell updates take milliseconds. [The 100,000-row tutorial](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxgrid/angular-grid-large-data.htm) - One API, four frameworks The same components and options in JavaScript, Angular, React and Vue, so what you learn carries over: [JavaScript](https://www.jqwidgets.com/jquery-widgets-documentation/), [React](https://www.jqwidgets.com/react-components-documentation/), [Vue](https://www.jqwidgets.com/vue-components-documentation/). - Made for current Angular Standalone components, signals and the new control flow; typed inputs and outputs, ngModel and reactive forms. Add it with ng add. [Set up with the Angular CLI](https://www.jqwidgets.com/angular-components-documentation/documentation/angular-cli/angular-cli.htm) - Themes, light and dark Fluent, Material, Tailwind and 35+ more themes, set per component, or your own from the Theme Builder. [Theme Builder](https://www.jqwidgets.com/themebuilder/) - Accessible and accountable ARIA roles and keyboard navigation in the components; a published security policy, advisories and a software bill of materials. [Security and compliance](https://www.jqwidgets.com/jquery-widgets-documentation/documentation/compliance/index.htm) - Ready for AI An AI-assisted Grid and a Chat component for your apps, and an MCP server and llms.txt that let coding assistants write correct jQWidgets code. [The MCP server](https://www.jqwidgets.com/jquery-widgets-documentation/documentation/mcp/mcp-server.htm) #### Getting started This page takes you from an empty folder to an Angular 22 application that shows a jQWidgets data grid. You create the project with the Angular CLI, add jQWidgets with `ng add`, and then use the grid from a standalone component. The Angular components live in the `jqwidgets-ng` npm package. Every component is standalone and the package supports Angular 19 and later. #### 1. Create the project Install the Angular CLI once, then create a new application. The CLI asks which stylesheet format to use and whether to enable server-side rendering; answer **No** to server-side rendering for this first app, because jQWidgets components render in the browser. ```bash npm install -g @angular/cli ng new my-app cd my-app ``` #### 2. Add jQWidgets with ng add ```bash ng add jqwidgets-ng ``` `ng add` asks you to choose a theme: base, fluent, material, material-green, material-purple, light or dark. It then: - adds `jqwidgets-ng` to `package.json` and installs it; - adds `jqx.base.css` and the chosen theme's stylesheet to the `styles` array in `angular.json`; - adds the Roboto and Material Icons font links to `src/index.html`. If you prefer to set this up yourself, run `npm install jqwidgets-ng` and add the stylesheets to `angular.json` as shown in [Angular CLI with jQWidgets](https://www.jqwidgets.com/angular-components-documentation/documentation/angular-cli/angular-cli.htm). #### 3. Add a grid to the root component Since Angular 20, `ng new` names the root component `App` in `src/app/app.ts`, with its template in `src/app/app.html`. Older projects use `app.component.ts` and `AppComponent`; the code is the same. Import `jqxGridModule` into the component's `imports` array. That is all a standalone component needs to use `` in its template. `src/app/app.ts`: ```typescript import { Component, viewChild } from '@angular/core'; import { jqxGridComponent, jqxGridModule } from 'jqwidgets-ng/jqxgrid'; @Component({ selector: 'app-root', imports: [jqxGridModule], templateUrl: './app.html' }) export class App { readonly myGrid = viewChild.required('myGrid'); readonly source = { datatype: 'array', localdata: [ { id: 1, name: 'Hydrogen', symbol: 'H' }, { id: 2, name: 'Helium', symbol: 'He' }, { id: 3, name: 'Lithium', symbol: 'Li' }, { id: 4, name: 'Beryllium', symbol: 'Be' }, { id: 5, name: 'Boron', symbol: 'B' } ], datafields: [ { name: 'id', type: 'number' }, { name: 'name', type: 'string' }, { name: 'symbol', type: 'string' } ] }; readonly dataAdapter = new jqx.dataAdapter(this.source); readonly columns = [ { text: 'Id', datafield: 'id', width: 80 }, { text: 'Name', datafield: 'name' }, { text: 'Symbol', datafield: 'symbol', width: 120 } ]; addElement(): void { this.myGrid().addrow(null, { id: 6, name: 'Carbon', symbol: 'C' }); } } ``` `src/app/app.html`: ```html ``` Set `[theme]` to the theme you picked in `ng add`. The `jqx` namespace, which holds `jqx.dataAdapter`, is declared by the type definitions that ship with `jqwidgets-ng`, so you do not import it. `src/main.ts` is created by the CLI and already starts the app with `bootstrapApplication`: ```typescript import { bootstrapApplication } from '@angular/platform-browser'; import { appConfig } from './app/app.config'; import { App } from './app/app'; bootstrapApplication(App, appConfig).catch((err) => console.error(err)); ``` #### 4. Run the app ```bash ng serve ``` Open `http://localhost:4200/`. The grid pages, sorts and filters the rows, and the button adds a row through the grid's `addrow` method. To scaffold a grid component instead of writing one, run `ng generate jqwidgets-ng:grid my-grid --skip-import`. It asks for a theme; [Angular CLI and jqwidgets-ng](https://www.jqwidgets.com/angular-components-documentation/documentation/angular-cli-with-jqwidgets-ng/index.htm) explains the generated files. #### Properties, events and methods Every widget option is an input with the option's name, so you bind it with `[option]="value"`. Remember the inner quotes for string literals: `[theme]="'material'"`. Every widget event is an output named `on` plus the event name with a capital first letter. The grid's `rowselect` event becomes `(onRowselect)`: ```html ``` Every widget method is a method of the component. Reach the component with a signal query, `viewChild.required`, and call the signal to get it: ```typescript import { AfterViewInit, Component, viewChild } from '@angular/core'; import { jqxBarGaugeComponent, jqxBarGaugeModule } from 'jqwidgets-ng/jqxbargauge'; @Component({ selector: 'app-gauge', imports: [jqxBarGaugeModule], template: `` }) export class Gauge implements AfterViewInit { readonly myBarGauge = viewChild.required('myBarGauge'); ngAfterViewInit(): void { const gauge = this.myBarGauge(); // Read and write a property through its method. const width = gauge.width(); gauge.width(width / 2); // Call a widget method. gauge.val([60, 80]); // Change several options at once. gauge.setOptions({ max: 150, values: [50, 70, 90] }); } } ``` #### Two-way data binding Input widgets such as jqxInput, jqxComplexInput and jqxDateTimeInput implement Angular's `ControlValueAccessor`, so they work with `[(ngModel)]` and reactive forms. Add `FormsModule` to the component's `imports` next to the widget module: ```typescript import { Component, signal } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { jqxInputModule } from 'jqwidgets-ng/jqxinput'; @Component({ selector: 'app-country', imports: [FormsModule, jqxInputModule], template: `

The selected country is {{ country() }}

` }) export class Country { readonly country = signal(''); readonly countries = [ 'Argentina', 'Australia', 'Austria', 'Belgium', 'Brazil', 'Bulgaria', 'Canada', 'Denmark', 'France', 'Germany' ]; } ``` `[(ngModel)]` accepts a writable signal directly, so the paragraph updates as you type or pick a suggestion. #### Documentation for AI assistants Every page of this documentation has a Markdown copy (the *Markdown* button at the top of a page), and the whole documentation is one file at [llms-full.txt](https://www.jqwidgets.com/angular-components-documentation/llms-full.txt), with an index at [llms.txt](https://www.jqwidgets.com/angular-components-documentation/llms.txt). Point your assistant there, or use *Ask AI* on any page. #### Next steps - [Angular Grid getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxgrid/angular-grid-getting-started.htm) - [Angular CLI and jqwidgets-ng](https://www.jqwidgets.com/angular-components-documentation/documentation/angular-cli-with-jqwidgets-ng/index.htm): what `ng add` changes and how the package is organised - [Tour of Heroes with jQWidgets](https://www.jqwidgets.com/angular-components-documentation/documentation/jqwidgets-heroes/index.htm): a step-by-step tutorial - Live demos: [jQWidgets Angular demos](https://www.jqwidgets.com/angular/) #### Components Every Angular component, by category. Each one links to its getting-started guide and its API reference. ##### Data Grids and Tables - [jqxGrid](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxgrid/angular-grid-getting-started.htm) Data grid with sorting, filtering, grouping, paging, editing, aggregates, export and virtual scrolling for large datasets. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxgrid/angular-grid-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxgrid/angular-grid-api.htm) - [jqxPivotGrid](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxpivotgrid/angular-pivotgrid-getting-started.htm) Pivot table for summarising data by rows, columns and aggregate functions, with a drag-and-drop designer. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxpivotgrid/angular-pivotgrid-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxpivotgrid/angular-pivotgrid-api.htm) - [jqxTreeGrid](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxtreegrid/angular-treegrid-getting-started.htm) Hierarchical grid that shows tree data in columns, with load-on-demand, editing, aggregates and export. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxtreegrid/angular-treegrid-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxtreegrid/angular-treegrid-api.htm) - [jqxDataTable](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxdatatable/angular-datatable-getting-started.htm) Lightweight table built on native table markup, with paging, sorting, filtering, grouping and editing. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxdatatable/angular-datatable-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxdatatable/angular-datatable-api.htm) ##### Charts and Visualization - [jqxChart](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxchart/angular-chart-getting-started.htm) Over 30 chart types (line, area, bar, pie, donut, range, financial, polar and spider) rendered as SVG or HTML5 Canvas. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxchart/angular-chart-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxchart/angular-chart-api.htm) - [jqxGauge](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxgauge/angular-gauge-getting-started.htm) Radial and linear gauges with ranges, ticks, labels and animated pointers. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxgauge/angular-gauge-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxgauge/angular-gauge-api.htm) - [jqxBarGauge](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxbargauge/angular-bargauge-getting-started.htm) Circular bar gauge that compares several values at once. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxbargauge/angular-bargauge-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxbargauge/angular-bargauge-api.htm) - [jqxBulletChart](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxbulletchart/angular-bulletchart-getting-started.htm) Compact bullet chart that shows a measure against a target and qualitative ranges. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxbulletchart/angular-bulletchart-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxbulletchart/angular-bulletchart-api.htm) - [jqxHeatMap](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxheatmap/angular-heatmap-getting-started.htm) Heat map that colours a matrix of values on a configurable colour scale. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxheatmap/angular-heatmap-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxheatmap/angular-heatmap-api.htm) - [jqxTreeMap](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxtreemap/angular-treemap-getting-started.htm) Treemap that shows hierarchical data as nested rectangles sized and coloured by value. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxtreemap/angular-treemap-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxtreemap/angular-treemap-api.htm) - [jqxRangeSelector](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxrangeselector/angular-rangeselector-getting-started.htm) Range slider over a numeric or date scale, often used to filter a chart or grid. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxrangeselector/angular-rangeselector-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxrangeselector/angular-rangeselector-api.htm) - [jqxBarcode](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxbarcode/angular-barcode-getting-started.htm) Barcode generator for common 1D symbologies, rendered as SVG or Canvas. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxbarcode/angular-barcode-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxbarcode/angular-barcode-api.htm) - [jqxQRcode](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxqrcode/angular-qrcode-getting-started.htm) QR code generator with error-correction levels, colours and an embedded logo. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxqrcode/angular-qrcode-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxqrcode/angular-qrcode-api.htm) - [jqxTagCloud](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxtagcloud/angular-tagcloud-getting-started.htm) Tag cloud that sizes and colours tags by weight. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxtagcloud/angular-tagcloud-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxtagcloud/angular-tagcloud-api.htm) - [jqxDraw](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxdraw/angular-draw-getting-started.htm) Low-level drawing API for SVG and Canvas shapes, text and paths. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxdraw/angular-draw-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxdraw/angular-draw-api.htm) ##### Scheduling and Planning - [jqxScheduler](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxscheduler/angular-scheduler-getting-started.htm) Calendar scheduler with day, week, month, timeline and agenda views, recurring appointments and resources. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxscheduler/angular-scheduler-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxscheduler/angular-scheduler-api.htm) - [jqxGantt](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxgantt/angular-gantt-getting-started.htm) Gantt chart with tasks, dependencies, milestones, resources and a task tree. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxgantt/angular-gantt-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxgantt/angular-gantt-api.htm) - [jqxKanban](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxkanban/angular-kanban-getting-started.htm) Kanban board with columns, swimlanes, drag-and-drop cards and templates. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxkanban/angular-kanban-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxkanban/angular-kanban-api.htm) - [jqxTimeline](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxtimeline/angular-timeline-getting-started.htm) Vertical or horizontal timeline of dated events. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxtimeline/angular-timeline-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxtimeline/angular-timeline-api.htm) ##### AI and Collaboration - [jqxChat](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxchat/angular-chat-getting-started.htm) Chat UI with message list, typing indicator, attachments and AI assistant integration. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxchat/angular-chat-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxchat/angular-chat-api.htm) ##### Editors and Inputs - [jqxEditor](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxeditor/angular-editor-getting-started.htm) WYSIWYG HTML editor with a configurable toolbar, source view and paste cleanup. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxeditor/angular-editor-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxeditor/angular-editor-api.htm) - [jqxForm](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxform/angular-form-getting-started.htm) Form built from a JSON template of fields, groups and buttons, with layout and validation. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxform/angular-form-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxform/angular-form-api.htm) - [jqxDateTimeInput](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxdatetimeinput/angular-datetimeinput-getting-started.htm) Masked date and time input with a drop-down calendar and range selection. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxdatetimeinput/angular-datetimeinput-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxdatetimeinput/angular-datetimeinput-api.htm) - [jqxCalendar](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxcalendar/angular-calendar-getting-started.htm) Month calendar with single, multiple and range date selection. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxcalendar/angular-calendar-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxcalendar/angular-calendar-api.htm) - [jqxTimePicker](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxtimepicker/angular-timepicker-getting-started.htm) Analog clock-face time picker for hours and minutes. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxtimepicker/angular-timepicker-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxtimepicker/angular-timepicker-api.htm) - [jqxInput](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxinput/angular-input-getting-started.htm) Text input with auto-complete from a local or remote data source. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxinput/angular-input-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxinput/angular-input-api.htm) - [jqxNumberInput](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxnumberinput/angular-numberinput-getting-started.htm) Numeric input with spin buttons, currency and percentage modes and min/max limits. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxnumberinput/angular-numberinput-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxnumberinput/angular-numberinput-api.htm) - [jqxMaskedInput](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxmaskedinput/angular-maskedinput-getting-started.htm) Input that restricts typing to a mask such as phone numbers, zip codes or IDs. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxmaskedinput/angular-maskedinput-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxmaskedinput/angular-maskedinput-api.htm) - [jqxFormattedInput](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxformattedinput/angular-formattedinput-getting-started.htm) Numeric input for binary, octal, decimal and hexadecimal values. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxformattedinput/angular-formattedinput-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxformattedinput/angular-formattedinput-api.htm) - [jqxComplexInput](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxcomplexinput/angular-complexinput-getting-started.htm) Input for complex numbers in algebraic form. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxcomplexinput/angular-complexinput-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxcomplexinput/angular-complexinput-api.htm) - [jqxPasswordInput](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxpasswordinput/angular-passwordinput-getting-started.htm) Password input with a show-password toggle and a strength indicator. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxpasswordinput/angular-passwordinput-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxpasswordinput/angular-passwordinput-api.htm) - [jqxTextArea](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxtextarea/angular-textarea-getting-started.htm) Multi-line text input with auto-complete and a styled scrollbar. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxtextarea/angular-textarea-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxtextarea/angular-textarea-api.htm) - [jqxColorPicker](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxcolorpicker/angular-colorpicker-getting-started.htm) Colour picker with saturation/hue palettes and hex and RGB entry. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxcolorpicker/angular-colorpicker-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxcolorpicker/angular-colorpicker-api.htm) - [jqxSlider](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxslider/angular-slider-getting-started.htm) Horizontal or vertical slider with a single value or a range, ticks and tooltips. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxslider/angular-slider-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxslider/angular-slider-api.htm) - [jqxKnob](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxknob/angular-knob-getting-started.htm) Rotary knob control with custom dials, markers and pointers. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxknob/angular-knob-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxknob/angular-knob-api.htm) - [jqxRating](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxrating/angular-rating-getting-started.htm) Star rating control with precision and custom images. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxrating/angular-rating-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxrating/angular-rating-api.htm) - [jqxButtons](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxbutton/angular-button-getting-started.htm) [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxbutton/angular-button-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxbutton/angular-buttons-api.htm) - [jqxFileUpload](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxfileupload/angular-fileupload-getting-started.htm) File upload with multiple files, progress, validation and localisation. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxfileupload/angular-fileupload-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxfileupload/angular-fileupload-api.htm) - [jqxValidator](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxvalidator/angular-validator-getting-started.htm) Form validation rules with inline hints and custom rules. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxvalidator/angular-validator-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxvalidator/angular-validator-api.htm) ##### Lists and Selection - [jqxDropDownList](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxdropdownlist/angular-dropdownlist-getting-started.htm) Drop-down list with check boxes, grouping, templates and filtering. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxdropdownlist/angular-dropdownlist-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxdropdownlist/angular-dropdownlist-api.htm) - [jqxComboBox](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxcombobox/angular-combobox-getting-started.htm) Editable drop-down with auto-complete, multi-select tokens and remote search. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxcombobox/angular-combobox-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxcombobox/angular-combobox-api.htm) - [jqxListBox](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxlistbox/angular-listbox-getting-started.htm) List with single or multiple selection, check boxes, grouping, filtering and drag-and-drop. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxlistbox/angular-listbox-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxlistbox/angular-listbox-api.htm) - [jqxTree](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxtree/angular-tree-getting-started.htm) Tree view with check boxes, drag-and-drop, load-on-demand and keyboard navigation. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxtree/angular-tree-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxtree/angular-tree-api.htm) - [jqxPickList](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxpicklist/angular-picklist-getting-started.htm) Dual list for moving items between an available and a selected list. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxpicklist/angular-picklist-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxpicklist/angular-picklist-api.htm) ##### Navigation and Menus - [jqxTabs](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxtabs/angular-tabs-getting-started.htm) Tabs with scrolling, closable and reorderable tabs, and lazy content loading. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxtabs/angular-tabs-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxtabs/angular-tabs-api.htm) - [jqxMenu](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxmenu/angular-menu-getting-started.htm) Horizontal, vertical and context menus with nested submenus and keyboard support. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxmenu/angular-menu-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxmenu/angular-menu-api.htm) - [jqxToolBar](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxtoolbar/angular-toolbar-getting-started.htm) Toolbar that holds buttons, inputs and drop-downs and collapses overflowing items into a menu. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxtoolbar/angular-toolbar-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxtoolbar/angular-toolbar-api.htm) - [jqxRibbon](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxribbon/angular-ribbon-getting-started.htm) Office-style ribbon with tabbed command groups. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxribbon/angular-ribbon-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxribbon/angular-ribbon-api.htm) - [jqxNavigationBar](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxnavigationbar/angular-navigationbar-getting-started.htm) Accordion of expandable sections. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxnavigationbar/angular-navigationbar-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxnavigationbar/angular-navigationbar-api.htm) - [jqxNavBar](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxnavbar/angular-navbar-getting-started.htm) Responsive horizontal or vertical navigation bar. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxnavbar/angular-navbar-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxnavbar/angular-navbar-api.htm) - [jqxListMenu](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxlistmenu/angular-listmenu-getting-started.htm) Mobile-style drill-down list menu with filtering. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxlistmenu/angular-listmenu-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxlistmenu/angular-listmenu-api.htm) ##### Layout and Containers - [jqxSplitter](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxsplitter/angular-splitter-getting-started.htm) Resizable, collapsible panels split horizontally or vertically. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxsplitter/angular-splitter-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxsplitter/angular-splitter-api.htm) - [jqxLayout](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxlayout/angular-layout-getting-started.htm) IDE-style layout with tabbed groups, auto-hide and floating panels. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxlayout/angular-layout-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxlayout/angular-layout-api.htm) - [jqxDockingLayout](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxdockinglayout/angular-dockinglayout-getting-started.htm) Layout whose panels can be docked, floated and rearranged by drag-and-drop. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxdockinglayout/angular-dockinglayout-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxdockinglayout/angular-dockinglayout-api.htm) - [jqxDocking](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxdocking/angular-docking-getting-started.htm) Dashboard of windows that can be dragged between columns, collapsed and closed. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxdocking/angular-docking-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxdocking/angular-docking-api.htm) - [jqxSplitLayout](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxsplitlayout/angular-splitlayout-getting-started.htm) Nested split layout defined from a JSON structure. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxsplitlayout/angular-splitlayout-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxsplitlayout/angular-splitlayout-api.htm) - [jqxPanel](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxpanel/angular-panel-getting-started.htm) Scrollable container with styled scrollbars and sizing modes. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxpanel/angular-panel-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxpanel/angular-panel-api.htm) - [jqxDockPanel](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxdockpanel/angular-dockpanel-getting-started.htm) Container that docks children to its top, left, right or bottom. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxdockpanel/angular-dockpanel-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxdockpanel/angular-dockpanel-api.htm) - [jqxExpander](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxexpander/angular-expander-getting-started.htm) Collapsible panel with a header and content. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxexpander/angular-expander-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxexpander/angular-expander-api.htm) - [jqxResponsivePanel](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxresponsivepanel/angular-responsivepanel-getting-started.htm) Side panel that collapses into a toggle button on small screens. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxresponsivepanel/angular-responsivepanel-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxresponsivepanel/angular-responsivepanel-api.htm) - [jqxScrollView](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxscrollview/angular-scrollview-getting-started.htm) Swipeable carousel of pages or images. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxscrollview/angular-scrollview-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxscrollview/angular-scrollview-api.htm) - [jqxScrollBar](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxscrollbar/angular-scrollbar-getting-started.htm) Styled horizontal and vertical scrollbars. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxscrollbar/angular-scrollbar-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxscrollbar/angular-scrollbar-api.htm) ##### Popups and Feedback - [jqxWindow](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxwindow/angular-window-getting-started.htm) Dialog window that can be modal, dragged, resized, collapsed and animated. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxwindow/angular-window-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxwindow/angular-window-api.htm) - [jqxNotification](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxnotification/angular-notification-getting-started.htm) Toast notifications with templates, stacking and auto-close. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxnotification/angular-notification-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxnotification/angular-notification-api.htm) - [jqxTooltip](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxtooltip/angular-tooltip-getting-started.htm) Tooltip with positions, triggers, delays and HTML content. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxtooltip/angular-tooltip-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxtooltip/angular-tooltip-api.htm) - [jqxPopover](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxpopover/angular-popover-getting-started.htm) Popover anchored to an element, with a title, arrow and any content. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxpopover/angular-popover-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxpopover/angular-popover-api.htm) - [jqxLoader](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxloader/angular-loader-getting-started.htm) Loading indicator overlay with text and images. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxloader/angular-loader-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxloader/angular-loader-api.htm) - [jqxProgressBar](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxprogressbar/angular-progressbar-getting-started.htm) Horizontal or vertical progress bar with custom ranges and labels. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxprogressbar/angular-progressbar-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxprogressbar/angular-progressbar-api.htm) ##### Data and Utilities - [jqxDragDrop](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxdragdrop/angular-dragdrop-getting-started.htm) Drag-and-drop plugin with drop targets, feedback and revert. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxdragdrop/angular-dragdrop-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxdragdrop/angular-dragdrop-api.htm) - [jqxSortable](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxsortable/angular-sortable-getting-started.htm) Reorder list items or elements by dragging. [Getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxsortable/angular-sortable-getting-started.htm) [API](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxsortable/angular-sortable-api.htm) --- ### Angular CLI with jQWidgets Chart Source: https://www.jqwidgets.com/angular-components-documentation/documentation/angular-cli/angular-cli-jqxchart.htm > This tutorial builds an Angular CLI application with a horizontal column chart of country populations. This tutorial builds an Angular CLI application with a horizontal column chart of country populations. It shows how chart settings map to component inputs and how to refresh the chart when the data changes. #### 1. Create the project and install jqwidgets-ng ```bash npm install -g @angular/cli ng new jqwidgets-chart-app cd jqwidgets-chart-app npm install jqwidgets-ng ``` Use Node 22 or later, and answer **No** to server-side rendering when `ng new` asks. #### 2. Add the stylesheets The chart draws with SVG, but its tooltips and title use the jQWidgets stylesheets. Add them to the `styles` array in `angular.json`: ```json "styles": [ "node_modules/jqwidgets-ng/jqwidgets/styles/jqx.base.css", "node_modules/jqwidgets-ng/jqwidgets/styles/jqx.light.css", "src/styles.css" ] ``` #### 3. Write the component The chart's settings are ordinary inputs: `source` holds the rows, `xAxis` names the category field, and `seriesGroups` describes how to draw the values. `src/app/app.ts`: ```typescript import { Component, viewChild } from '@angular/core'; import { jqxChartComponent, jqxChartModule } from 'jqwidgets-ng/jqxchart'; interface CountryPopulation { Country: string; Population: number; Percent: number; } @Component({ selector: 'app-root', imports: [jqxChartModule], templateUrl: './app.html' }) export class App { readonly myChart = viewChild.required('myChart'); readonly sampleData: CountryPopulation[] = [ { Country: 'India', Population: 1438069596, Percent: 17.8 }, { Country: 'China', Population: 1409670000, Percent: 17.5 }, { Country: 'USA', Population: 340110988, Percent: 4.2 }, { Country: 'Indonesia', Population: 281190067, Percent: 3.5 }, { Country: 'Pakistan', Population: 247504495, Percent: 3.1 } ]; readonly padding = { left: 20, top: 5, right: 20, bottom: 5 }; readonly titlePadding = { left: 90, top: 0, right: 0, bottom: 10 }; readonly xAxis = { dataField: 'Country', gridLines: { visible: true } }; readonly valueAxis = { flip: true, labels: { visible: true, formatFunction: (value: string): string => String(Math.round(parseInt(value, 10) / 1000000)) } }; readonly seriesGroups = [ { type: 'column', orientation: 'horizontal', columnsGapPercent: 50, toolTipFormatSettings: { thousandsSeparator: ',' }, series: [{ dataField: 'Population', displayText: 'Population (millions)' }] } ]; showPercent(): void { const chart = this.myChart(); chart.seriesGroups()[0].series[0] = { dataField: 'Percent', displayText: 'Share of world population (%)' }; chart.valueAxis({ flip: true, labels: { visible: true } }); chart.update(); } } ``` `src/app/app.html`: ```html ``` Chart settings are read when the chart renders. When you change a setting object in place, call the chart's `update` method so it redraws, as `showPercent` does. #### 4. Run the application ```bash ng serve ``` Open `http://localhost:4200/`. Hover a bar to see the tooltip with thousands separators, then press the button to switch the series. Next: [Angular Chart getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxchart/angular-chart-getting-started.htm), or the same setup with a [data grid](https://www.jqwidgets.com/angular-components-documentation/documentation/angular-cli/angular-cli-jqxgrid.htm). More chart types: [jQWidgets Angular demos](https://www.jqwidgets.com/angular/). --- ### Angular CLI with jQWidgets Grid Source: https://www.jqwidgets.com/angular-components-documentation/documentation/angular-cli/angular-cli-jqxgrid.htm > This tutorial builds an Angular CLI application that shows a customer list in jqxGrid. This tutorial builds an Angular CLI application that shows a customer list in jqxGrid. It uses a data adapter for the rows, and a signal query to call grid methods from the component. #### 1. Create the project and install jqwidgets-ng ```bash npm install -g @angular/cli ng new jqwidgets-grid-app cd jqwidgets-grid-app npm install jqwidgets-ng ``` Angular 22 needs Node 22 or later. Answer **No** to server-side rendering when `ng new` asks. #### 2. Add the stylesheets In `angular.json`, add the base stylesheet and a theme to the `styles` array of the `build` target, then restart `ng serve` if it is running: ```json "styles": [ "node_modules/jqwidgets-ng/jqwidgets/styles/jqx.base.css", "node_modules/jqwidgets-ng/jqwidgets/styles/jqx.fluent.css", "src/styles.css" ] ``` `ng add jqwidgets-ng` makes the same change and lets you pick the theme from a list. #### 3. Describe the data jqxGrid reads rows through `jqx.dataAdapter`. The source object says where the rows are (`localdata` here, a `url` for server data) and which fields they have. With array rows, `map` gives the index of each field. Put the data in its own file, `src/app/customers.ts`, to keep the component short: ```typescript export const CUSTOMERS: string[][] = [ ['Alfreds Futterkiste', 'Maria Anders', 'Sales Representative', 'Obere Str. 57', 'Berlin', 'Germany'], ['Ana Trujillo Emparedados y helados', 'Ana Trujillo', 'Owner', 'Avda. de la Constitución 2222', 'México D.F.', 'Mexico'], ['Antonio Moreno Taquería', 'Antonio Moreno', 'Owner', 'Mataderos 2312', 'México D.F.', 'Mexico'], ['Around the Horn', 'Thomas Hardy', 'Sales Representative', '120 Hanover Sq.', 'London', 'UK'], ['Berglunds snabbköp', 'Christina Berglund', 'Order Administrator', 'Berguvsvägen 8', 'Luleå', 'Sweden'], ['Blauer See Delikatessen', 'Hanna Moos', 'Sales Representative', 'Forsterstr. 57', 'Mannheim', 'Germany'], ['Blondel père et fils', 'Frédérique Citeaux', 'Marketing Manager', '24, place Kléber', 'Strasbourg', 'France'], ['Bólido Comidas preparadas', 'Martín Sommer', 'Owner', 'C/ Araquil, 67', 'Madrid', 'Spain'], ['Bon app\'', 'Laurence Lebihan', 'Owner', '12, rue des Bouchers', 'Marseille', 'France'], ['Bottom-Dollar Markets', 'Elizabeth Lincoln', 'Accounting Manager', '23 Tsawassen Blvd.', 'Tsawassen', 'Canada'], ['Chop-suey Chinese', 'Yang Wang', 'Owner', 'Hauptstr. 29', 'Bern', 'Switzerland'], ['Ernst Handel', 'Roland Mendel', 'Sales Manager', 'Kirchgasse 6', 'Graz', 'Austria'] ]; ``` #### 4. Write the component `src/app/app.ts`: ```typescript import { Component, signal, viewChild } from '@angular/core'; import { jqxGridComponent, jqxGridModule } from 'jqwidgets-ng/jqxgrid'; import { CUSTOMERS } from './customers'; @Component({ selector: 'app-root', imports: [jqxGridModule], templateUrl: './app.html' }) export class App { readonly myGrid = viewChild.required('myGrid'); readonly selected = signal('none'); readonly source = { datatype: 'array', localdata: CUSTOMERS, datafields: [ { name: 'CompanyName', type: 'string', map: '0' }, { name: 'ContactName', type: 'string', map: '1' }, { name: 'Title', type: 'string', map: '2' }, { name: 'Address', type: 'string', map: '3' }, { name: 'City', type: 'string', map: '4' }, { name: 'Country', type: 'string', map: '5' } ] }; readonly dataAdapter = new jqx.dataAdapter(this.source); readonly columns = [ { text: 'Company Name', datafield: 'CompanyName', width: 240 }, { text: 'Contact Name', datafield: 'ContactName', width: 160 }, { text: 'Contact Title', datafield: 'Title', width: 170 }, { text: 'Address', datafield: 'Address', width: 200 }, { text: 'City', datafield: 'City', width: 120 }, { text: 'Country', datafield: 'Country' } ]; onRowSelect(event: any): void { this.selected.set(event.args.row.CompanyName); } exportToExcel(): void { this.myGrid().exportview('xlsx', 'customers'); } } ``` `src/app/app.html`: ```html

Selected: {{ selected() }}

``` The grid's `rowselect` event arrives as the `(onRowselect)` output. Updating the `selected` signal refreshes the paragraph without any extra change-detection code. #### 5. Run the application ```bash ng serve ``` Open `http://localhost:4200/`. Click a column header to sort, drag a column border to resize, and select a row to see its company name below the grid. Next: [Angular Grid getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxgrid/angular-grid-getting-started.htm), [grid data sources](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxgrid/angular-grid-datasources.htm), or the same setup with a [chart](https://www.jqwidgets.com/angular-components-documentation/documentation/angular-cli/angular-cli-jqxchart.htm). Live examples: [jQWidgets Angular demos](https://www.jqwidgets.com/angular/). --- ### Angular CLI with jQWidgets Source: https://www.jqwidgets.com/angular-components-documentation/documentation/angular-cli/angular-cli.htm > This tutorial sets up jQWidgets in a new Angular CLI project by hand and shows a jqxBarGauge. This tutorial sets up jQWidgets in a new Angular CLI project by hand and shows a jqxBarGauge. It explains each change the setup makes, so you know what to check in an existing project. If you want the CLI to make these changes for you, use `ng add jqwidgets-ng` instead; see [Angular CLI and jqwidgets-ng](https://www.jqwidgets.com/angular-components-documentation/documentation/angular-cli-with-jqwidgets-ng/index.htm). #### 1. Check Node.js and install the Angular CLI Angular 22 needs a current Node.js LTS release (Node 22 or later). Check your version, then install the CLI globally so the `ng` command is available everywhere. ```bash node -v npm install -g @angular/cli ``` #### 2. Create the application ```bash ng new jqwidgets-angular-cli-app cd jqwidgets-angular-cli-app ``` Answer **No** when the CLI asks about server-side rendering. jQWidgets components draw in the browser DOM, so a client-rendered app is the simplest start. #### 3. Install jqwidgets-ng ```bash npm install jqwidgets-ng ``` The package contains the Angular components and the jQWidgets runtime they use, in its `jqwidgets/` folder. There is nothing else to install, and no TypeScript files to add to `tsconfig.json`: the components ship compiled, with type definitions. #### 4. Add the stylesheets Open `angular.json` and add the base stylesheet and one theme to the `styles` array of the `build` target. The base stylesheet holds the layout rules every widget needs; the theme sets colours and fonts. ```json "styles": [ "node_modules/jqwidgets-ng/jqwidgets/styles/jqx.base.css", "node_modules/jqwidgets-ng/jqwidgets/styles/jqx.material.css", "src/styles.css" ] ``` Restart `ng serve` after editing `angular.json`; the dev server reads it only on start. #### 5. Use the bar gauge in the root component Components in Angular 22 are standalone, so there is no module file to edit. Import `jqxBarGaugeModule` in the component that uses ``. `src/app/app.ts`: ```typescript import { Component, viewChild } from '@angular/core'; import { jqxBarGaugeComponent, jqxBarGaugeModule } from 'jqwidgets-ng/jqxbargauge'; @Component({ selector: 'app-root', imports: [jqxBarGaugeModule], templateUrl: './app.html' }) export class App { readonly myBarGauge = viewChild.required('myBarGauge'); readonly values = [102, 115, 130, 137]; randomize(): void { this.myBarGauge().val(this.values.map(() => Math.round(Math.random() * 150))); } } ``` `src/app/app.html`: ```html ``` The CLI already starts the app from `src/main.ts` with `bootstrapApplication(App, appConfig)`, so you do not change that file. Projects created before Angular 20 name the files `app.component.ts` and `app.component.html` and the class `AppComponent`. #### 6. Run the application ```bash ng serve ``` Open `http://localhost:4200/` to see four bars. The button calls the gauge's `val` method through the signal query. #### Troubleshooting - **The widget has no styling.** Check the paths in the `styles` array and restart `ng serve`. - **"'jqxBarGauge' is not a known element".** Add `jqxBarGaugeModule` to the `imports` of the component whose template uses the tag. Next: the same setup with a [data grid](https://www.jqwidgets.com/angular-components-documentation/documentation/angular-cli/angular-cli-jqxgrid.htm) or a [chart](https://www.jqwidgets.com/angular-components-documentation/documentation/angular-cli/angular-cli-jqxchart.htm), or the [Bar Gauge getting started](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxbargauge/angular-bargauge-getting-started.htm) page. More examples: [jQWidgets Angular demos](https://www.jqwidgets.com/angular/). --- ### Angular CLI and jqwidgets-ng Source: https://www.jqwidgets.com/angular-components-documentation/documentation/angular-cli-with-jqwidgets-ng/index.htm > jqwidgets-ng is the npm package with the jQWidgets Angular components. This page explains how the package is organised, what ng add jqwidgets-ng changes in… `jqwidgets-ng` is the npm package with the jQWidgets Angular components. This page explains how the package is organised, what `ng add jqwidgets-ng` changes in your project, and how to generate a grid component with the package's schematic. #### What is in the package - It is built in the Angular Package Format, the layout the Angular CLI expects, and is published as partial-Ivy code. A newer Angular version links it at build time, so one release works with Angular 19 and later, including Angular 22. - Each widget has its own entry point, `jqwidgets-ng/`. The build includes only the widgets you import. - Each entry point exports a standalone component, such as `jqxGridComponent` with the selector ``, and a module with the same component, such as `jqxGridModule`. Either one can go in a component's `imports`. - The `jqwidgets/` folder holds the jQWidgets runtime and the stylesheets in `jqwidgets/styles/`. The components load the runtime themselves. #### 1. Create an Angular application ```bash npm install -g @angular/cli ng new my-app cd my-app ``` #### 2. Run ng add ```bash ng add jqwidgets-ng ``` The CLI downloads the package, asks you to confirm the installation, and then runs the package's setup schematic. The schematic asks for a theme: ```bash ? Choose a prebuilt theme name: (Use arrow keys) ❯ Default Fluent Material Blue Material Green Material Purple Light Dark ``` To run it without prompts, for example in a script, pass the answers as options: ```bash ng add jqwidgets-ng --theme=material-purple --skip-confirmation ``` #### 3. What ng add changed `package.json` now lists `jqwidgets-ng` in `dependencies`, and the package is installed. `angular.json` has the base stylesheet and the theme in the `styles` of both the `build` and `test` targets, so widgets look the same in the app and in unit tests: ```json "styles": [ "src/styles.css", "./node_modules/jqwidgets-ng/jqwidgets/styles/jqx.base.css", "./node_modules/jqwidgets-ng/jqwidgets/styles/jqx.material-purple.css" ] ``` `src/index.html` has two font links in its ``, for Roboto and Material Icons, which the Material themes use: ```html ``` To change the theme later, run `ng add jqwidgets-ng` again and pick another one, or replace the theme file name in `angular.json` yourself. Then set the same name in the widgets' `theme` input. #### 4. Use two widgets in a component Import each widget from its own entry point and list it in the component's `imports`. This component uses a date input and a button: `src/app/app.ts`: ```typescript import { Component, signal, viewChild } from '@angular/core'; import { jqxButtonModule } from 'jqwidgets-ng/jqxbuttons'; import { jqxDateTimeInputComponent, jqxDateTimeInputModule } from 'jqwidgets-ng/jqxdatetimeinput'; @Component({ selector: 'app-root', imports: [jqxDateTimeInputModule, jqxButtonModule], templateUrl: './app.html' }) export class App { readonly dateInput = viewChild.required('dateInput'); readonly chosen = signal(''); onValueChanged(event: any): void { this.chosen.set(event.args.date.toDateString()); } today(): void { this.dateInput().setDate(new Date()); } } ``` `src/app/app.html`: ```html Today

You chose: {{ chosen() }}

``` #### 5. Generate a grid component The package also contains a `grid` schematic. It creates a component that shows sample data in jqxGrid, which is a quick way to start a data page. In a standalone application, pass `--skip-import`: without it the schematic looks for an NgModule to register the grid in. ```bash ng generate jqwidgets-ng:grid customers --skip-import ``` It asks for a theme, then writes `customers.component.ts`, its template and its stylesheet under `src/app/customers/`. Open `customers.component.ts` and make sure its `@Component` has `imports: [jqxGridModule]`, importing `jqxGridModule` from `'jqwidgets-ng/jqxgrid'`. Then add `CustomersComponent` to the `imports` of the component that shows it, and put `` in that template. #### 6. Run the application ```bash ng serve ``` Open `http://localhost:4200/`. #### Updating Update the package with npm. The stylesheet paths stay the same between releases. ```bash npm install jqwidgets-ng@latest ``` Next: [set up jqwidgets-ng by hand](https://www.jqwidgets.com/angular-components-documentation/documentation/angular-cli/angular-cli.htm), [themes](https://www.jqwidgets.com/angular-components-documentation/documentation/angular-themes/index.htm), or the [Tour of Heroes tutorial](https://www.jqwidgets.com/angular-components-documentation/documentation/jqwidgets-heroes/index.htm). Live examples: [jQWidgets Angular demos](https://www.jqwidgets.com/angular/). --- ### Themes in Angular Source: https://www.jqwidgets.com/angular-components-documentation/documentation/angular-themes/index.htm > A jQWidgets theme is a stylesheet and a name. The stylesheet jqx.fluent.css styles every widget whose theme is fluent: the widget adds the name to its CSS… A jQWidgets theme is a stylesheet and a name. The stylesheet `jqx.fluent.css` styles every widget whose `theme` is `fluent`: the widget adds the name to its CSS classes, such as `jqx-grid-fluent`, and the stylesheet's rules match those classes. In Angular you add the stylesheet to `angular.json` and set the `theme` input of each component. This guide does that in a project made with Angular CLI 22 (`ng new`) and jqwidgets-ng 27.0.1, and then switches between a light and a dark theme while the app runs. The project setup is described in [Angular CLI with jQWidgets](https://www.jqwidgets.com/angular-components-documentation/documentation/angular-cli/angular-cli.htm). The theme list below is for 27.1.0, the current release; the notes that name 27.0.1 describe that version. #### The theme files jqwidgets-ng installs the stylesheets in `node_modules/jqwidgets-ng/jqwidgets/styles/`. `jqx.base.css` holds the layout rules every widget needs and is always loaded first. Each other file is one theme, and the theme's name is the file name without `jqx.` and `.css`. | Kind | Theme names in jqwidgets-ng 27.1.0 | | --- | --- | | Design systems | `fluent`, `fluent-dark`, `material`, `material-dark`, `material-green`, `material-green-dark`, `material-purple`, `material-purple-dark`, `tailwind`, `tailwind-dark`, `tailwind-blue`, `tailwind-blue-dark`, `bootstrap` | | Light and dark pairs | `fluent` and `fluent-dark`, `material` and `material-dark`, `material-green` and `material-green-dark`, `material-purple` and `material-purple-dark`, `tailwind` and `tailwind-dark`, `tailwind-blue` and `tailwind-blue-dark`, `light` and `dark`, `metro` and `metrodark`, `ui-lightness` and `ui-darkness` | | Other dark themes | `black`, `android`, `blue`, `windowsphone`, `ui-le-frog` | | Other light themes | `arctic`, `blackberry`, `classic`, `darkblue`, `energyblue`, `flat`, `fresh`, `glacier`, `highcontrast`, `mobile`, `office`, `orange`, `shinyblack`, `summer`, `web`, `ui-overcast`, `ui-redmond`, `ui-smoothness`, `ui-start`, `ui-sunny` | | Legacy files | `jqx.light-ie.css` and `jqx.dark-ie.css` (theme names `light` and `dark`), `jqx.fluent_old.css` (theme name `fluent`) | Version 27.1.0 added `fluent-dark`, `material-dark`, `material-green-dark` and `material-purple-dark`, and the `tailwind-blue` pair: Tailwind with the blue of Microsoft 365. Each dark theme has the same sizes and spacing as its light theme, so nothing moves when the app switches between them. Version 27.0.1 has none of them; there, use `tailwind-dark` for a dark look. The legacy files are for existing apps. `jqx.light-ie.css` and `jqx.dark-ie.css` are `light` and `dark` written without CSS variables. `jqx.fluent_old.css` is an earlier version of `fluent` with the same class names, so load one or the other. #### Add a theme Add the base stylesheet and the theme to the `styles` of the `build` target in `angular.json`, in this order: ```json "styles": [ "node_modules/jqwidgets-ng/jqwidgets/styles/jqx.base.css", "node_modules/jqwidgets-ng/jqwidgets/styles/jqx.fluent.css", "src/styles.css" ] ``` The theme has to come after `jqx.base.css`: both stylesheets style the same elements, and the later one wins. `ng serve` reads `angular.json` only when it starts, so restart it. #### Set the theme input Every jqwidgets-ng component has a `theme` input. Give it the theme's name: `src/app/app.ts`: ```typescript import { Component } from '@angular/core'; import { jqxGridModule } from 'jqwidgets-ng/jqxgrid'; @Component({ selector: 'app-root', imports: [jqxGridModule], templateUrl: './app.html' }) export class App { readonly source = new jqx.dataAdapter({ localdata: [ { name: 'Espresso', category: 'Coffee', price: 2.2, stock: 140 }, { name: 'Cappuccino', category: 'Coffee', price: 3.1, stock: 85 }, { name: 'Flat White', category: 'Coffee', price: 3.4, stock: 62 }, { name: 'Green Tea', category: 'Tea', price: 2.5, stock: 120 }, { name: 'Chai Latte', category: 'Tea', price: 3.6, stock: 40 }, { name: 'Hot Chocolate', category: 'Chocolate', price: 3.2, stock: 75 }, { name: 'Croissant', category: 'Bakery', price: 2.4, stock: 30 }, { name: 'Blueberry Muffin', category: 'Bakery', price: 2.9, stock: 18 } ], datatype: 'array', datafields: [ { name: 'name', type: 'string' }, { name: 'category', type: 'string' }, { name: 'price', type: 'number' }, { name: 'stock', type: 'number' } ] }); readonly columns = [ { text: 'Product', datafield: 'name' }, { text: 'Category', datafield: 'category', width: 130 }, { text: 'Price', datafield: 'price', width: 90, cellsformat: 'c2', cellsalign: 'right', align: 'right' }, { text: 'In stock', datafield: 'stock', width: 90, cellsalign: 'right', align: 'right' } ]; } ``` `src/app/app.html`: ```html ``` The value of a `[theme]` binding is an expression, so a fixed name needs the inner quotes: `[theme]="'fluent'"`. Without the brackets, `theme="fluent"` sets the same string. Each component needs its own `theme`; a widget without one uses only `jqx.base.css`. The grid in the fluent theme; in dark mode this page shows it in tailwind-dark. #### Switch themes while the app runs To let users change the theme, the app needs two things: the new theme's stylesheet on the page, and the new name in every component's `theme` input. A service can do both, keeping the name in a signal that the templates read. ##### Build each theme as its own file Themes that are loaded later go in `angular.json` with `"inject": false`. The build then writes each to its own file, named by `bundleName`, and does not add it to the page: ```json "styles": [ "node_modules/jqwidgets-ng/jqwidgets/styles/jqx.base.css", { "input": "node_modules/jqwidgets-ng/jqwidgets/styles/jqx.fluent.css", "bundleName": "jqx.fluent", "inject": false }, { "input": "node_modules/jqwidgets-ng/jqwidgets/styles/jqx.tailwind.css", "bundleName": "jqx.tailwind", "inject": false }, { "input": "node_modules/jqwidgets-ng/jqwidgets/styles/jqx.tailwind-dark.css", "bundleName": "jqx.tailwind-dark", "inject": false }, "src/styles.css" ] ``` The build copies the images and fonts the themes refer to, so the files work as they are. `ng build` writes them to `dist//browser/jqx.fluent.css` and so on, without a hash in the name. ##### Load one theme at a time Several themes, such as `fluent`, `tailwind` and `tailwind-dark`, set CSS variables with the same names on `:root`. If two of them are on the page, the one loaded last decides the colours of both: after `tailwind-dark` has been loaded, a `fluent` grid turns dark. So the service adds the new theme's ``, waits until it has loaded, and then removes the previous one. `src/app/theme.service.ts`: ```typescript import { DOCUMENT, Injectable, inject, signal } from '@angular/core'; @Injectable({ providedIn: 'root' }) export class ThemeService { private readonly document = inject(DOCUMENT); private link?: HTMLLinkElement; readonly theme = signal(''); async use(name: string): Promise { const link = this.document.createElement('link'); link.rel = 'stylesheet'; link.href = `jqx.${name}.css`; await new Promise((resolve, reject) => { link.onload = () => resolve(); link.onerror = () => reject(new Error(`${link.href} could not be loaded`)); this.document.head.appendChild(link); }); // A theme stylesheet sets CSS variables on :root, so keep only one on the page. this.link?.remove(); this.link = link; this.theme.set(name); this.document.body.classList.toggle('dark', name.endsWith('-dark')); } } ``` The signal changes only after the stylesheet has loaded, so the widgets never show the new theme's classes without its rules. The `dark` class on `` lets the page itself follow the theme, as shown below. The first theme is loaded the same way, before the application starts. `provideAppInitializer` in `src/app/app.config.ts` waits for it: ```typescript import { ApplicationConfig, inject, provideAppInitializer, provideBrowserGlobalErrorListeners } from '@angular/core'; import { provideRouter } from '@angular/router'; import { routes } from './app.routes'; import { ThemeService } from './theme.service'; export const appConfig: ApplicationConfig = { providers: [ provideBrowserGlobalErrorListeners(), provideRouter(routes), // Load the first theme before the app renders. provideAppInitializer(() => inject(ThemeService).use('fluent')) ] }; ``` ##### Bind the theme input to the signal The component injects the service and reads its signal in the template. When the signal changes, Angular updates the `theme` input and the grid draws itself again with the new classes. `src/app/app.ts`: ```typescript import { Component, inject } from '@angular/core'; import { jqxGridModule } from 'jqwidgets-ng/jqxgrid'; import { ThemeService } from './theme.service'; @Component({ selector: 'app-root', imports: [jqxGridModule], templateUrl: './app.html', styleUrl: './app.css' }) export class App { readonly themeService = inject(ThemeService); readonly themes = ['fluent', 'tailwind', 'tailwind-dark']; readonly source = new jqx.dataAdapter({ localdata: [ { name: 'Espresso', category: 'Coffee', price: 2.2, stock: 140 }, { name: 'Cappuccino', category: 'Coffee', price: 3.1, stock: 85 }, { name: 'Flat White', category: 'Coffee', price: 3.4, stock: 62 }, { name: 'Green Tea', category: 'Tea', price: 2.5, stock: 120 }, { name: 'Chai Latte', category: 'Tea', price: 3.6, stock: 40 }, { name: 'Hot Chocolate', category: 'Chocolate', price: 3.2, stock: 75 }, { name: 'Croissant', category: 'Bakery', price: 2.4, stock: 30 }, { name: 'Blueberry Muffin', category: 'Bakery', price: 2.9, stock: 18 } ], datatype: 'array', datafields: [ { name: 'name', type: 'string' }, { name: 'category', type: 'string' }, { name: 'price', type: 'number' }, { name: 'stock', type: 'number' } ] }); readonly columns = [ { text: 'Product', datafield: 'name' }, { text: 'Category', datafield: 'category', width: 130 }, { text: 'Price', datafield: 'price', width: 90, cellsformat: 'c2', cellsalign: 'right', align: 'right' }, { text: 'In stock', datafield: 'stock', width: 90, cellsalign: 'right', align: 'right' } ]; } ``` `src/app/app.html`: ```html ``` The picker is a native ``, dark as well: ```css body { margin: 24px; font-family: system-ui, sans-serif; color-scheme: light; background: #ffffff; color: #1f2937; } body.dark { color-scheme: dark; background: #14171c; color: #e5e7eb; } ``` #### When a component does not change its theme In jqwidgets-ng 27.0.1, a component sometimes ignores a changed input. When an input changes, the component applies its inputs in a fixed order and stops at the first array input whose items equal the widget's current value. On a jqxDropDownList, `[source]` comes before `[theme]`, so with an unchanged list of items a new theme is never applied. jqxGrid applies `theme` before `source` and `columns`, so the grid above is not affected. If a component keeps its old theme, set the theme with the component's `theme()` method from an `effect`, which runs again whenever the signal changes: ```typescript import { Component, effect, signal, viewChild } from '@angular/core'; import { jqxDropDownListComponent, jqxDropDownListModule } from 'jqwidgets-ng/jqxdropdownlist'; @Component({ selector: 'app-root', imports: [jqxDropDownListModule], template: ` ` }) export class App { readonly sizeList = viewChild.required('sizeList'); readonly theme = signal('fluent'); readonly sizes = ['Small', 'Medium', 'Large']; constructor() { // jqwidgets-ng 27.0.1 does not apply [theme] here (see the note above): set it with the method. effect(() => this.sizeList().theme(this.theme())); } } ``` #### Troubleshooting - **The widgets have no colours.** Check that the theme's stylesheet is in `angular.json` (or loaded by the service) and that the name in `theme` matches the file name: `jqx.tailwind-dark.css` is `tailwind-dark`. - **The theme looks wrong: grey boxes, square corners.** `jqx.base.css` is loaded after the theme. Put it first in `styles`. - **A light theme turns dark after switching.** Two token-based themes are on the page at once; remove the previous theme's `` when you load the next one. - **`ng build` fails with "bundle initial exceeded maximum budget".** A new project allows a first bundle of 1 MB, and this app's is about 2 MB. Raise the `initial` budget of the `production` configuration in `angular.json`, for example to `"maximumWarning": "3MB"` and `"maximumError": "4MB"`. - **The build prints "Expected identifier but found "*"" for a theme file.** The stylesheets contain old-browser hacks such as `*zoom: 1`; current browsers ignore them, and so can you. More: [Angular CLI with jQWidgets](https://www.jqwidgets.com/angular-components-documentation/documentation/angular-cli/angular-cli.htm), the [Angular Grid tutorials](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxgrid/angular-grid-data-binding.htm), and the [unit testing guide](https://www.jqwidgets.com/angular-components-documentation/documentation/angular-unit-testing/index.htm). --- ### How the Angular CLI builds your app Source: https://www.jqwidgets.com/angular-components-documentation/documentation/webpack/index.htm > Angular applications used to be bundled with webpack, configured through entry points, loaders, plugins and resolve rules. Angular applications used to be bundled with webpack, configured through entry points, loaders, plugins and resolve rules. The Angular CLI now builds applications with its esbuild-based application builder, and new projects do not use webpack. This page explains the build in the terms the webpack configuration used, so you know where each setting lives now. #### Entry and output In webpack you named the entry file and the output folder. With the application builder they are options of the `build` target in `angular.json`: | Webpack setting | angular.json option | Default | | --- | --- | --- | | `entry` | `browser` | `src/main.ts` | | `output.path` | `outputPath` | `dist/`; the browser files go in its `browser/` folder | | `output.filename` with `[hash]` | `outputHashing` | `all` in production | | A separate vendor entry | Not needed | Shared code is split into chunks automatically | The entry file starts the application. In a CLI project it is short: ```typescript import { bootstrapApplication } from '@angular/platform-browser'; import { appConfig } from './app/app.config'; import { App } from './app/app'; bootstrapApplication(App, appConfig).catch((err) => console.error(err)); ``` #### Loaders Webpack only understood JavaScript, so TypeScript, HTML and CSS each needed a loader. The application builder handles these file types itself: - **TypeScript** is compiled by the Angular compiler, including component templates, using `tsconfig.app.json`. - **HTML templates** referenced with `templateUrl` are compiled into the component. - **CSS, Sass and Less** work in `styles`, `styleUrl` and global stylesheets. Global stylesheets, such as the jQWidgets `jqx.base.css` and theme files, go in the `styles` array. - **Images and fonts** referenced from CSS with `url()` are copied to the output with hashed names. That is how the jQWidgets theme images and icon fonts reach the build. For other file types you import from TypeScript, the `loader` option chooses how to load them: ```json "loader": { ".svg": "text", ".csv": "text" } ``` #### Plugins Webpack plugins did anything a loader could not, such as defining constants or copying files. The builder covers the common cases with options: - `define` replaces global identifiers with constants at build time. - `assets` copies files, such as the contents of `public/`, to the output. - `fileReplacements` swaps a file per configuration, for example an environment file. - `optimization`, `sourceMap` and `budgets` control minification, source maps and size warnings. If you need a real esbuild plugin, use a community builder such as `@angular-builders/custom-esbuild`. It runs the same build and adds your plugins. Keep this to cases the options cannot cover, because a custom builder must be kept in step with each Angular release. #### Resolve Module resolution follows TypeScript. Extensions are resolved automatically, and path aliases come from `compilerOptions.paths` in `tsconfig.json`: ```json { "compilerOptions": { "paths": { "@shared/*": ["src/app/shared/*"] } } } ``` Package entry points, such as `jqwidgets-ng/jqxgrid`, resolve through the package's `exports` field. Import each widget from its own entry point so only the widgets you use are bundled. #### Full example This `build` target is the complete equivalent of a webpack configuration for an app that uses jQWidgets: ```json "build": { "builder": "@angular/build:application", "options": { "browser": "src/main.ts", "outputPath": "dist/my-app", "tsConfig": "tsconfig.app.json", "assets": [{ "glob": "**/*", "input": "public" }], "styles": [ "src/styles.css", "./node_modules/jqwidgets-ng/jqwidgets/styles/jqx.base.css", "./node_modules/jqwidgets-ng/jqwidgets/styles/jqx.fluent.css" ], "define": { "BUILD_DATE": "'2026-09-27'" } }, "configurations": { "production": { "outputHashing": "all" }, "development": { "optimization": false, "sourceMap": true } }, "defaultConfiguration": "production" } ``` Declare a `define` constant for TypeScript before you use it, for example with `declare const BUILD_DATE: string;`. #### Moving a webpack project A project on the older webpack-based builder (`@angular-devkit/build-angular:browser`) can migrate with one command, which rewrites the `build` target: ```bash ng update @angular/cli --name use-application-builder ``` Custom webpack configurations have to be replaced by the options above or by an esbuild plugin. Next: [building for production](https://www.jqwidgets.com/angular-components-documentation/documentation/angular-webpack/angular-webpack.htm) and [the development server](https://www.jqwidgets.com/angular-components-documentation/documentation/angular-webpack/angular-webpack-with-dev-server.htm). --- ### Accessibility in Angular Source: https://www.jqwidgets.com/angular-components-documentation/documentation/accessibility/jqwidgets-accessibility-overview.htm > The jQWidgets Angular components are made to work with a keyboard and a screen reader. The jQWidgets Angular components are made to work with a keyboard and a screen reader. Each component creates its widget in an element inside its own tag, and the widget does the accessibility work. It adds WAI-ARIA roles and states to its elements and keeps them up to date. It answers the keys that users of that kind of control expect, and it can mirror its layout for right-to-left languages. Charts, gauges and codes get a name that a screen reader can read out. Some things only your app knows: what a field is called, what a drawing shows, and what happened after a click. This guide shows what the components do in jqwidgets-ng 27.1.0 with Angular 22, and the code your app adds for accessibility. One thing differs from plain elements: attributes on a component's tag, such as `aria-label`, stay on the tag and do not reach the widget, so your app sets them on the widget's element (see A name for every field). #### The conformance report The [jQWidgets Accessibility Conformance Report](https://www.jqwidgets.com/jquery-widgets-documentation/documentation/compliance/vpat.htm) (VPAT 2.5 format) rates every WCAG 2.1 Level A and AA success criterion, says how each one was tested, and names the command that repeats the test. It covers the widgets themselves, which the Angular components wrap. It is a self-issued report for version 27.0.0, dated 4 September 2026 and marked as a draft. | Question | What the report says | | --- | --- | | Which standard? | WCAG 2.1 Level A and AA. Of the 50 criteria, 37 are rated Supports and 13 Not Applicable, because they are about whole pages or media (page titles, captions and similar). | | What is covered? | `jqx.base.css` and the widgets that render HTML, in the `base`, `light` and `dark` themes. | | What is not covered? | The widgets that draw their content and take its colours from your options: jqxChart, jqxGauge, jqxLinearGauge, jqxBarGauge, jqxBulletChart, jqxHeatMap, jqxTreeMap, jqxKnob, jqxBarcode, jqxQRcode, jqxDraw and jqxGantt. The other themes, such as `fluent`, `tailwind` and `highcontrast`, are provided but not claimed. | | WCAG 2.2? | The six Level A and AA criteria that WCAG 2.2 adds are rated separately: 2.4.11 Focus Not Obscured is supported, 2.5.7 Dragging Movements and 2.5.8 Target Size are partially supported, and three do not apply. So the report does not claim WCAG 2.2 Level AA. | | Section 508, EN 301 549? | The report rates WCAG criteria only. It has no separate Section 508 or EN 301 549 tables. | Use the report for procurement and audits. The rest of this guide shows what it means for your app. #### WAI-ARIA roles and states Each widget adds its ARIA attributes when it is created; there is no option to turn on. This component: ```typescript import { Component } from '@angular/core'; import { jqxSliderModule } from 'jqwidgets-ng/jqxslider'; @Component({ selector: 'app-volume', imports: [jqxSliderModule], template: `` }) export class Volume {} ``` renders this element inside `` (without its generated `id`, its `class` and its `style`): ```html
``` `tabindex="0"` puts the slider in the Tab order, and the role and the values tell a screen reader what it is and where it stands. When the user presses the Right Arrow key, the widget changes `aria-valuenow` to 6. The slider has no name yet: A name for every field shows how to add one. To see the attributes of any widget, inspect its element in the browser's developer tools, or open their Accessibility panel. The widgets follow the patterns of the [WAI-ARIA Authoring Practices Guide](https://www.w3.org/WAI/ARIA/apg/). These are the roles and states that jqwidgets-ng 27.1.0 renders for the components used most: | Component | Roles | States and properties | | --- | --- | --- | | jqxSlider, jqxRating | `slider` | `aria-valuenow`, `aria-valuemin`, `aria-valuemax` | | jqxNumberInput | `spinbutton` | `aria-valuenow`, `aria-valuemin`, `aria-valuemax` | | jqxProgressBar | `progressbar` | `aria-valuenow` | | jqxCheckBox, jqxSwitchButton | `checkbox` | `aria-checked` | | jqxButtonGroup (radio mode) | `radiogroup`, `radio` | | jqxDropDownList, jqxComboBox | `combobox` | `aria-expanded`, `aria-haspopup`, `aria-owns`; an open drop-down list names the highlighted item with `aria-activedescendant` | | jqxListBox | `listbox`, `option` | `aria-selected`, `aria-multiselectable` | | jqxTabs | `tablist`, `tab`, `tabpanel` | `aria-selected` and `aria-controls` on each tab, and only the selected tab in the Tab order; each tab panel is `aria-labelledby` its tab | | jqxTree | `tree`, `group`, `treeitem` | `aria-expanded` on an item with children; `aria-selected` on the selected item, which is also the tree's `aria-activedescendant` | | jqxMenu | `menubar`, `menuitem` | `aria-haspopup`, `aria-expanded` and `aria-owns` on an item with a submenu | | jqxGrid | `grid`, `row`, `columnheader`, `gridcell` | `aria-rowcount`, `aria-colcount`, `aria-rowindex`, `aria-colindex`, `aria-multiselectable`, `aria-sort` on a sorted column, and the selected row as `aria-activedescendant` | | jqxWindow | `dialog` | `aria-labelledby` its title bar, `aria-describedby` its content | | jqxInput | `textbox` | | jqxChart, the gauges, jqxBulletChart, jqxQRcode | `img` | `aria-label`: see Names for charts, gauges and codes | #### Turning the ARIA attributes off `jqx.ariaEnabled` is `true` by default. Setting it to `false` in `src/main.ts`, before the application starts, stops the widgets from writing their states. `jqx` is a global that jqwidgets-ng declares: ```typescript import { bootstrapApplication } from '@angular/platform-browser'; import { appConfig } from './app/app.config'; import { App } from './app/app'; jqx.ariaEnabled = false; bootstrapApplication(App, appConfig).catch((err) => console.error(err)); ``` It does less than its name says. The roles, the labels and the grid's structure stay. What goes are the values and states, such as `aria-valuenow` and `aria-checked`, and the messages of `jqx.announce` (see Status messages). A slider is then a slider without a value, and axe-core reports it as an error (`aria-required-attr`). Leave the setting on. #### Keyboard navigation Tab moves into a component and out of it again, and the arrow keys move inside it. The conformance report found every interactive widget operable from the keyboard, with no keyboard trap and a visible change when it gets the focus. These are the main keys in 27.1.0: | Component | Keys | | --- | --- | | jqxSlider | Left and Down Arrow lower the value, Right and Up Arrow raise it; Home and End go to the minimum and the maximum | | jqxRating | Left and Right Arrow | | jqxNumberInput | Up and Down Arrow | | jqxCheckBox, jqxSwitchButton | Space | | jqxListBox | Up and Down Arrow, Home, End | | jqxDropDownList, jqxComboBox | Alt+Down Arrow opens the list, Down Arrow and Enter pick an item, Escape closes the list | | jqxDateTimeInput | Alt+Down Arrow opens the calendar; the arrow keys and Enter pick a day | | jqxCalendar | Left and Right Arrow: a day; Up and Down Arrow: a week; Page Up and Page Down: a month; Home and End: the first and last day of the month | | jqxTabs | Left and Right Arrow, Home, End | | jqxTree | Up and Down Arrow; Right Arrow expands an item and Left Arrow collapses it; Home, End | | jqxMenu | with `[keyboardNavigation]="true"`: Left and Right Arrow, Alt+Down Arrow opens a submenu, Down Arrow and Enter choose in it, Escape closes it | | jqxGrid | Up and Down Arrow move the selection, Home and End go to the first and last row | | jqxButtonGroup | Left and Right Arrow move between the buttons | | jqxWindow | Escape closes it; a modal window keeps Tab inside it | | jqxTooltip | Escape closes it | What to know about a few components: - **jqxTree** and **jqxGrid** move from the selected item or row. When a tree gets the focus with nothing selected, it selects its first item; in a grid with no row selected, the first arrow key selects the first row. Before 27.1.0 the arrow keys did nothing until something was selected. On those versions, call the tree's `selectItem` method in `ngAfterViewInit`, and the grid's `selectrow(0)` once the data is in it. - **jqxMenu** answers the keyboard only with `[keyboardNavigation]="true"`; the default is `false`. - **jqxWindow**: when a modal window opens, the focus moves into it. Escape closes it, and the focus goes back to the element that had it before. The keyboard demos list all the keys of each component: [Grid](https://www.jqwidgets.com/angular/angular-grid/angular-grid-keyboardnavigation.htm), [Tree](https://www.jqwidgets.com/angular/angular-tree/angular-tree-keyboardnavigation.htm), [ListBox](https://www.jqwidgets.com/angular/angular-listbox/angular-listbox-keyboardnavigation.htm), [DropDownList](https://www.jqwidgets.com/angular/angular-dropdownlist/angular-dropdownlist-keyboardnavigation.htm), [ComboBox](https://www.jqwidgets.com/angular/angular-combobox/angular-combobox-keyboardnavigation.htm), [Calendar](https://www.jqwidgets.com/angular/angular-calendar/angular-calendar-keyboardnavigation.htm), [DateTimeInput](https://www.jqwidgets.com/angular/angular-datetimeinput/angular-datetimeinput-keyboardnavigation.htm), [Slider](https://www.jqwidgets.com/angular/angular-slider/angular-slider-keyboardnavigation.htm), [Tabs](https://www.jqwidgets.com/angular/angular-tabs/angular-tabs-keyboardnavigation.htm), [Menu](https://www.jqwidgets.com/angular/angular-menu/angular-menu-keyboardnavigation.htm) and [Window](https://www.jqwidgets.com/angular/angular-window/angular-window-keyboardnavigation.htm). #### Right-to-left languages 59 components have an `rtl` input. With `[rtl]="true"`, a widget mirrors its layout for languages such as Arabic and Hebrew: the tabs start on the right, the grid's first column is on the right, and the arrow of a drop-down list moves to the left. ```typescript import { Component } from '@angular/core'; import { jqxDropDownListModule } from 'jqwidgets-ng/jqxdropdownlist'; @Component({ selector: 'app-country', imports: [jqxDropDownListModule], template: `` }) export class Country { readonly countries = ['Israel', 'Jordan']; } ``` The input mirrors the widget only. It does not set the `dir` attribute, so give the page its language and direction as well, in `src/index.html`; the widgets lay out the same way inside it: ```html ``` #### Contrast and the high-contrast theme The report measured the `base`, `light` and `dark` themes: no text below the contrast that WCAG 2.1 AA asks for, and control borders and focus indicators at 3:1 or more. If your app has to meet WCAG 2.1 AA, use one of these three. The `highcontrast` theme is for users with low vision. It shows black text on white, white on black under the pointer, and white on dark purple for the selected item: | State | Text on background | Contrast ratio | | --- | --- | --- | | Normal | `#000` on `#fff` | 21:1 | | Hover | `#fff` on `#000` | 21:1 | | Selected | `#fff` on `#37006e` | 15.13:1 | All three are above 7:1, the level of the WCAG AAA criterion 1.4.6 Contrast (Enhanced). On a test page with 16 widgets in this theme, axe-core found no text below 7:1. The theme is not part of the report's claim. To use it, add its stylesheet after `jqx.base.css` in the `styles` of `angular.json`, and set each component's `[theme]="'highcontrast'"`: ```json "styles": [ "node_modules/jqwidgets-ng/jqwidgets/styles/jqx.base.css", "node_modules/jqwidgets-ng/jqwidgets/styles/jqx.highcontrast.css", "src/styles.css" ] ``` More about themes: [Themes in Angular](https://www.jqwidgets.com/angular-components-documentation/documentation/angular-themes/index.htm). The `highcontrast` theme does not change chart colours. For colour-blind users, the report measured the 27 colour schemes of version 27.0.0: only `scheme09` kept every pair of series apart for all three common kinds of colour blindness. 27.1.0 adds `scheme28` and makes it the default; measured the same way, it keeps every pair apart too. #### Names for charts, gauges and codes Widgets that draw get `role="img"` and an `aria-label`, so a screen reader reads each one as a single image with a name: | Component | Name | Example | | --- | --- | --- | | jqxChart | its title and description | "Sales. Units by month" | | jqxGauge, jqxLinearGauge | the reading | "Gauge, 55 of 0 to 220" | | jqxBarGauge | the values | "Bar gauge, values 35, 60, 80" | | jqxBulletChart | its title and description | "Revenue. (U.S. $ thousands)" | | jqxQRcode | the encoded value | "https://www.jqwidgets.com" | A chart with no title and no description gets no role at all, rather than an image without a name. An `aria-label` on the widget's element wins over the widget's own name, so use one to say what the chart shows, not only what it is called. The element is the first child of the component's tag; set the attributes in `ngAfterViewInit`: ```typescript import { AfterViewInit, Component, viewChild } from '@angular/core'; import { jqxChartComponent, jqxChartModule } from 'jqwidgets-ng/jqxchart'; @Component({ selector: 'app-sales-chart', imports: [jqxChartModule], template: ` ` }) export class SalesChart implements AfterViewInit { readonly chart = viewChild.required('chart'); readonly sales = [ { month: 'January', units: 10 }, { month: 'February', units: 14 } ]; readonly xAxis = { dataField: 'month' }; readonly seriesGroups = [ { type: 'column', series: [{ dataField: 'units', displayText: 'Units' }] } ]; ngAfterViewInit(): void { // Say what the chart shows. The widget's element is the first child of . const element: HTMLElement = this.chart().elementRef.nativeElement.firstElementChild; element.setAttribute('role', 'img'); element.setAttribute('aria-label', 'Monthly sales: 10 units in January, 14 in February'); } } ``` A gauge's own name follows its value. An `aria-label` that you set on its element wins, and the widget does not change it, so if you name a gauge yourself, set the `aria-label` again when the value changes. jqxDraw is a drawing surface and cannot know what you draw on it: give its element `role="img"` and an `aria-label` in the same way. #### Status messages A screen reader reads what has the focus. Changes elsewhere on the page, such as a sorted grid or a saved form, stay silent unless they go into a live region. When the page has loaded, jQWidgets adds two hidden live regions to it: `#jqxLiveRegionPolite` (`role="status"`) and `#jqxLiveRegionAssertive` (`role="alert"`). The grid uses them: sorting by the Product column announces "Sorted by Product". Your code can use them too, with `jqx.announce`. A message is polite by default, so the screen reader waits until it has finished speaking. Pass `true` for an error, which is read at once: ```typescript jqx.announce('3 rows saved'); jqx.announce('Could not save the changes', true); ``` Announce the changes that your own code makes. For example, when your code selects a grid row while the focus is somewhere else, the report notes that nothing is announced. #### What your app adds ##### A name for every field A widget cannot know what a field is for. Give each one a visible label and connect the two with `aria-labelledby`, or name it with `aria-label`. In Angular, put these attributes on the widget's element, not on the component's tag: the component creates the widget in an element inside its tag and moves only the tag's classes and styles to it. The component has created its widget by your component's `ngAfterViewInit`; reach the element through the component's `elementRef`. Where to set the attributes depends on the widget: | Component | How to name it | | --- | --- | | jqxCheckBox | Its content: `Gift wrap` | | jqxSlider, jqxSwitchButton, jqxListBox, jqxTree, jqxGrid, jqxDropDownList, jqxInput | `aria-label` or `aria-labelledby` on the element with the widget's role | | jqxComboBox, jqxNumberInput, jqxDateTimeInput | The keyboard focus goes to an `` inside the widget. The widget gives it the element's label only when it is created, which is before your `ngAfterViewInit`, so set `aria-labelledby` on that input as well. Select it inside the element with the role (`[role="combobox"] input`, or `[role="spinbutton"] input` for the number and date inputs), because the tags of jqxNumberInput and jqxDateTimeInput hold another `` of their own first. | Before 27.1.0, jqxDropDownList and jqxInput replaced an `aria-label` with their own ("DropDownList", "Input"); on those versions, use `aria-labelledby`. This form puts it together. axe-core finds no violations in it, and in the accessibility tree the fields are named Size, Country, Gift wrap and Save, in that Tab order. Save announces "Order saved". ```typescript import { AfterViewInit, Component, viewChild } from '@angular/core'; import { jqxCheckBoxModule } from 'jqwidgets-ng/jqxcheckbox'; import { jqxComboBoxComponent, jqxComboBoxModule } from 'jqwidgets-ng/jqxcombobox'; import { jqxDropDownListComponent, jqxDropDownListModule } from 'jqwidgets-ng/jqxdropdownlist'; @Component({ selector: 'app-root', imports: [jqxCheckBoxModule, jqxComboBoxModule, jqxDropDownListModule], template: `

Size

Country

Gift wrap
` }) export class App implements AfterViewInit { readonly sizeList = viewChild.required('sizeList'); readonly countryList = viewChild.required('countryList'); readonly sizes = ['Small', 'Medium', 'Large']; readonly countries = ['France', 'Germany', 'Spain']; ngAfterViewInit(): void { // The widget's element is inside the component's tag, so attributes on the tag do not reach it. const size: HTMLElement = this.sizeList().elementRef.nativeElement; size.querySelector('[role="combobox"]')?.setAttribute('aria-labelledby', 'size-label'); const country: HTMLElement = this.countryList().elementRef.nativeElement; country .querySelector('[role="combobox"]') ?.setAttribute('aria-labelledby', 'country-label'); // jqxComboBox puts the keyboard focus on an inside it: label that input too. country .querySelector('[role="combobox"] input') ?.setAttribute('aria-labelledby', 'country-label'); } save(event: Event): void { event.preventDefault(); // Tell screen reader users what happened: the message goes to a polite live region. jqx.announce('Order saved'); } } ``` ##### The rest is your app's part - **The page itself**: its title, its language (`lang`) and a way to skip repeated content. The report rates these as the page's responsibility, not the library's. Headings and landmarks (`main`, `nav`) are yours as well. - **An alternative to dragging** (WCAG 2.2, criterion 2.5.7). Moving a jqxWindow, resizing jqxSplitter panes, reordering in jqxSortable and jqxKanban, and, where you turn them on, reordering and resizing grid columns and dragging list box and tree items, can all be done with the keyboard, but with the pointer only by dragging. Where your users need it, add another way, such as a button or a menu command. - **Target size** (WCAG 2.2, criterion 2.5.8). jqxScrollView's page dots, jqxTimePicker's AM/PM buttons, jqxRating's stars at their default size and jqxEditor's toolbar toggles are smaller than 24 by 24 pixels. For jqxRating, set the `[itemWidth]` and `[itemHeight]` inputs. - **Testing**: use the app with the keyboard alone and with a screen reader such as NVDA, and run axe-core or your browser's accessibility checker. #### Further reading - [jQWidgets Accessibility Conformance Report](https://www.jqwidgets.com/jquery-widgets-documentation/documentation/compliance/vpat.htm) (VPAT 2.5, WCAG 2.1 Level A and AA) - [WAI-ARIA Authoring Practices Guide](https://www.w3.org/WAI/ARIA/apg/) - [WCAG 2.1](https://www.w3.org/TR/WCAG21/) and [WCAG 2.2](https://www.w3.org/TR/WCAG22/) - [Themes in Angular](https://www.jqwidgets.com/angular-components-documentation/documentation/angular-themes/index.htm); live demos of every component: [jQWidgets for Angular](https://www.jqwidgets.com/angular/) ## AI --- ### Getting started with the Angular Chat Source: https://www.jqwidgets.com/angular-components-documentation/documentation/jqxchat/angular-chat-getting-started.htm > Angular Chat getting started: install jQWidgets, add jqxChat to your app, see a complete example, handle its events and call its methods. The Angular Chat is a chat UI with a message list, a typing indicator, attachments and AI assistant integration. This guide adds the Angular Chat (`jqxChat`) to an app, then shows how to set its options, handle its events and call its methods. - **Package:** `jqwidgets-ng` - **Import:** `jqwidgets-ng/jqxchat` - **Demos:** [Angular Chat demos](https://www.jqwidgets.com/angular/angular-chat/) - **API:** [Properties, events and methods](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxchat/angular-chat-api.htm) jqxChat in the [Default Functionality](https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxchat/index.htm) demo, with the Fluent theme (Tailwind Dark in dark mode). #### 1. Install In an Angular project (to start one, see [Getting started with Angular](https://www.jqwidgets.com/angular-components-documentation/index.htm)), add the package with the Angular CLI. It asks for a theme and adds the styles to `angular.json`: ```bash ng add jqwidgets-ng ``` #### 2. Import the component Components are standalone: add `jqxChatModule` to the `imports` of the component that uses it. ```typescript import { Component } from '@angular/core'; import { jqxChatModule } from 'jqwidgets-ng/jqxchat'; @Component({ selector: 'app-root', imports: [jqxChatModule], templateUrl: './app.html' }) export class App {} ``` #### 3. A complete example The source of the live [Default Functionality](https://www.jqwidgets.com/angular/angular-chat/angular-chat-defaultfunctionality.htm) demo. ```html ``` ```typescript import { Component } from '@angular/core'; import { CommonModule } from '@angular/common'; import { jqxChatModule } from 'jqwidgets-ng/jqxchat'; /* Shared offline reply used by the chat demos so they run without an API key. */ function mockReply(t: string): string { const q = (t || '').toLowerCase(); if (/jqwidgets|jqx|widget|component/.test(q)) { return '**jQWidgets** ships 80+ UI components for jQuery, Angular, React, Vue and Web Components - grids, charts, schedulers, and this **jqxChat** assistant.'; } if (/code|example|snippet|function/.test(q)) { return "Here is a small example:\n\n```js\nfunction greet(name) {\n return 'Hello, ' + name;\n}\ngreet('jQWidgets');\n```"; } if (/markdown|format|bold|link/.test(q)) { return 'I render lightweight Markdown safely: **bold**, *italic*, `inline code`, fenced blocks and [links](https://www.jqwidgets.com).'; } if (/stream/.test(q)) { return 'With **stream: true** I render tokens as they arrive via appendDelta(), so answers appear word by word.'; } if (/theme|dark|light|style|brand|color/.test(q)) { return 'jqxChat inherits the active theme. Set **colorScheme** to `light`, `dark` or `auto`, and **accentColor** to any CSS color.'; } return ( 'You said: "' + t + '". Offline I echo you back; set an apiKey or proxyUrl and I stream a real answer here.' ); } @Component({ imports: [CommonModule, jqxChatModule], selector: 'app-root', templateUrl: './app.html' }) export class App { prompts: string[] = [ 'What is jQWidgets?', 'Show me a code example', 'Explain streaming responses' ]; sendRequest = (payload: any): Promise => { const msgs = payload && payload.messages ? payload.messages : []; const text = msgs.length ? String(msgs[msgs.length - 1].content || '') : ''; return new Promise((resolve) => setTimeout(() => resolve(mockReply(text)), 450)); }; } ``` Options are inputs, bound with `[name]="value"`. #### 4. Handle events Events are outputs named `on` plus the event name with a capital first letter. For example, `open`: This event is triggered when the popup panel is opened. ```html ``` ```typescript onOpen(event: any): void { console.log(event.args); } ``` #### 5. Call methods Get the component with a signal query and call its methods. For example, `val`: Returns the conversation history as an array of message objects (alias of getMessages). ```html ``` ```typescript import { Component, viewChild } from '@angular/core'; import { jqxChatModule, jqxChatComponent } from 'jqwidgets-ng/jqxchat'; @Component({ selector: 'app-root', imports: [jqxChatModule], templateUrl: './app.html' }) export class App { readonly myChat = viewChild.required('myChat'); run(): void { const value = this.myChat().val(); console.log(value); } } ``` #### Next steps - [Chat API reference](https://www.jqwidgets.com/angular-components-documentation/documentation/jqxchat/angular-chat-api.htm): every property, event and method, with examples. - [Angular Chat demos](https://www.jqwidgets.com/angular/angular-chat/): live examples with their source code. --- ### jQWidgets MCP Server Source: https://www.jqwidgets.com/angular-components-documentation/documentation/mcp/mcp-server.htm > A Model Context Protocol server that gives AI coding assistants full knowledge of the jQWidgets component library — 80+ widgets with every property, method… A Model Context Protocol server that gives AI coding assistants full knowledge of the jQWidgets component library — 80+ widgets with every property, method, event and data type, plus a code generator that emits runnable examples for jQuery, React, Angular and Vue. #### What it does Wire the server into any MCP-aware assistant and ask in plain English. The assistant can: - Answer API questions — *"what properties does `jqxGrid` support?"*, *"what events does `jqxScheduler` fire?"* - Resolve the exact `