Dashboard for Angular
Introduction
Section titled “Introduction”Renders a configurable, API-driven dashboard from one versioned JSON definition (layout per breakpoint, widgets, data sources, variables, pages, style) on top of Dashboard Grid and Dashboard Widget. Users switch between view and edit mode (when the host allows editing), move and resize widgets by pointer or keyboard, add, edit, and remove widgets, and undo every change; each change emits the new validated definition for the host to store. Widget data comes from same-origin or allow-listed cross-origin APIs through a host fetcher that owns authentication, from static data, or from mock data. JSON never carries code: widget types and custom transforms are registered in code; mapping uses JSON Pointer and a fixed set of transforms. Subpaths: dashboard/widgets (11 built-in widget types), dashboard/builder (widget builder Drawer with a JSON tab, dashboard JSON editor, templates), dashboard/schema (JSON Schema of the definition).
- One JSON definitionWidgets, data sources, variables, and pages come from one versioned definition.
- Built-in widgetsKPI, chart, list, progress, table, and text widgets ready to register.
- Edit modeUsers move, resize, add, and remove widgets, with undo, redo, and reset.
- Safe data loadingData sources call only allowed origins, with retries, caching, and your own fetcher.
- Variables and pagesFilters feed data source parameters, and pages split large dashboards.
Behavior, design tokens, and limitations are described on the Dashboard page; this page covers the Angular API.
Live example
Section titled “Live example”import { Component, signal } from '@angular/core';import { AuiDashboard } from '@absoluteui/angular/dashboard';
@Component({ selector: 'app-home-dashboard', imports: [AuiDashboard], template: `<aui-dashboard [(definition)]="definition" [editable]="true" (dashboardChange)="save()"></aui-dashboard>`,})export class HomeDashboardComponent { readonly definition = signal<unknown>({ schemaVersion: 1, id: 'home', title: 'Home', widgets: [] }); save(): void { localStorage.setItem('dashboard:home', JSON.stringify(this.definition())); }}Install and start
Section titled “Install and start”npm install @absoluteui/angular @absoluteui/components @absoluteui/core @absoluteui/themeSetup with provideAbsoluteUI() is covered in Getting started. Styles are included with the component.
import { AuiDashboard } from '@absoluteui/angular/dashboard';Defaults for every instance: provideAbsoluteUIConfig({ components: { dashboard: { ... } } }) (see Configuration).
API reference
Section titled “API reference”<aui-dashboard>
Section titled “<aui-dashboard>”Class AuiDashboard; template reference #ref="auiDashboard".
AbsoluteUI Dashboard: renders a JSON dashboard definition: <aui-dashboard [(definition)]="definition" [editable]="true" (dashboardChange)="save()"></aui-dashboard>. [(definition)] follows every change (layout, widgets, undo, import) and [(mode)] the view/edit switch. A new definition value is applied when it differs from the current one; changing any other input re-creates the dashboard (undo history and kiosk mode start fresh).
Server rendering: Renders in the browser only; on the server the element stays empty.
Inputs
Section titled “Inputs”| Input | Type | Default | Description |
|---|---|---|---|
registry |
WidgetRegistry |
Widget types by name. Default: defaultWidgetRegistry (fill it with registerWidgetType or registerBuiltInWidgets). | |
transforms |
TransformRegistry |
Custom transforms for { op: ‘custom’, name }. Default: defaultTransformRegistry. | |
fetcher |
DashboardFetcher |
(request, signal) => Promise<unknown>: performs data source requests and owns authentication. Default: defaultFetcher (global fetch, no redirects, JSON only, size-limited). | |
allowedOrigins |
readonly string[] |
Exact http(s) origins besides the page origin that data sources may call. Invalid entries throw DASHBOARD_OPTIONS. Default: none. | |
baseUrl |
string |
Base for root-relative data source URLs and the ‘same origin’. Default: location.href. | |
editable |
boolean |
false |
Whether users may switch to edit mode; false hides the edit switch and refuses setMode(‘edit’). |
toolbar |
boolean | DashboardToolbarOptions |
true |
Show the toolbar; an object turns items off (variables, refresh, edit, undo, reset, add, json, pages). |
timeZone |
string |
IANA zone for date range presets and the ‘Updated’ time. Default: the runtime zone. | |
businessCalendars |
Readonly<Record<string, BusinessCalendarEngine>> |
Business calendars by the name date range variables refer to (business-day presets, date range picker). | |
headingLevel |
2 | 3 | 4 | 5 | 6 |
'3' |
Heading level of widget titles. |
label |
string |
Accessible name of the widget area. Default: ‘{title} widgets’. | |
lazy |
boolean |
true |
Load a widget’s data only when it comes within 200 px of the viewport (IntersectionObserver). |
historyLimit |
number |
'100' |
Undo steps (integer 1 to 1000). |
retries |
number |
'2' |
GET retries on network errors, timeouts, 408, 429, and 5xx, with exponential backoff and jitter (integer 0 to 5). |
locale |
string |
'en-US' |
Locale of messages, numbers, and times. |
direction |
Direction |
'ltr' |
Direction of the grid, toolbar, tabs, and drawers. |
Two-way bindings
Section titled “Two-way bindings”| Model | Type | Change output | Description |
|---|---|---|---|
[(definition)] |
unknown |
(definitionChange) |
The dashboard definition (plain JSON). Older schemaVersions are migrated; invalid input throws DASHBOARD_DEFINITION with the first issue’s JSON Pointer. Change it later with setDefinition(). |
[(mode)] |
DashboardMode |
(modeChange) |
Initial mode; ‘edit’ needs editable: true. Change it with setMode(). |
Outputs
Section titled “Outputs”| Output | Payload | Description |
|---|---|---|
(dashboardChange) |
DashboardChangeDetail |
|
(variablesChange) |
DashboardVariablesChangeDetail |
|
(widgetError) |
DashboardWidgetErrorDetail |
|
(widgetSelect) |
DashboardWidgetSelectDetail |
|
(pageChange) |
DashboardPageChangeDetail |
A different page is shown. Re-emits aui-page-change. |
Methods
Section titled “Methods”Call them through a viewChild query or a template reference.
| Method | Description |
|---|---|
setVariable(id: string, value: unknown): boolean |
Validate and set a variable; dependent data sources reload. False for an unknown id or invalid value. |
refresh(source?: string | undefined): void |
Reload one data source, or every source of the current page, bypassing the cache. |
setPage(id: string): void |
Show a page (emits pageChange). |
undo(): boolean |
Step back in the definition history (emits dashboardChange). |
redo(): boolean |
Step forward in the definition history (emits dashboardChange). |
reset(): void |
Return to the saved definition (undoable; emits dashboardChange). |
markSaved(): void |
Make the current definition the one reset() returns to (call after storing it). |
addWidget(widget: Omit<WidgetDefinition, "layout"> & { layout?: WidgetLayout; }): readonly DefinitionIssue[] |
Add a widget; returns issues (empty when added). |
updateWidget(id: string, widget: WidgetDefinition): readonly DefinitionIssue[] |
Replace a widget’s definition; returns issues (empty when applied). |
removeWidget(id: string): boolean |
Remove a widget and its layout entries. |
startKiosk(options?: DashboardKioskOptions | undefined): void |
Read-only display without toolbar and tabs; optional page rotation and full screen. |
stopKiosk(): void |
Leave kiosk mode. |
check(definition: unknown): readonly DefinitionIssue[] |
Migrate and validate a candidate definition without applying it (works before the first render). |
Accessibility and performance
Section titled “Accessibility and performance”Pattern: Composition: a group of toolbar controls (native controls of the AbsoluteUI components), optional WAI-ARIA APG Tabs for pages, and a labelled region of widgets (Dashboard Grid) whose widgets are labelled regions (Dashboard Widget). Editing uses the Dashboard Grid move handles; the builder is an APG modal Dialog (Drawer).
The Angular component renders the framework-neutral component, so its keyboard support, roles, WCAG 2.2 criteria, budgets, and import cost apply unchanged: see Dashboard: Accessibility and performance.
(c) 2026 Kasadara Technology Solutions Pvt Ltd. AbsoluteUI is free to use under the AbsoluteUI Free Use License; it is not open source.