angular-ui/ui-grid
Trên GitHub, angular-ui/ui-grid đã đạt 5.4k sao, nhóm Frontend, ngôn ngữ TypeScript. UI Grid: a Data Grid
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Snapshot
Cộng tác viên hàng đầu
Xem cộng tác viên hàng đầu
Discord Community
UI Grid — 5.x
The modern web data grid for Angular, React, and Web Components. Every feature is free and open source.
Rust, WASM implementation, egui, and native adapter source and documentation live in orneryd/uiGrid.
v5.x + is in use by my other project, NornicDB, in the web ui components (It's a high-performance golang graph+vector database if you want to take a look)
A from-scratch rewrite of the original by the original author. Same gridOptions / columnDefs / onRegisterApi api surface, modern Angular signals internals, and zero legacy baggage.
Just like the original grid, it will NEVER be monetized. This is purely my contribution to the greater community.
It proves that the datagrid cabal wants you to think it's hard to write a data grid. Well, it's not, and nobody should be paying to group data.
Live Demo & Docs | npm | Rust Project | Used by NornicDB
Why Remastered?
- Original authorship — built by the same engineer who created AngularJS ui-grid, with a decade of hindsight on what worked and what didn't
- Familiar API — if you used the original ui-grid, you already know this one:
gridOptions,columnDefs,onRegisterApi,gridApi.core.* - Modern internals — shared vanilla web component core with Shadow DOM encapsulation; Angular and React wrappers are thin bridges that project framework templates into the vanilla element via slot-based portals
- No legacy — no
$scope, no Bower, no Grunt, no jQuery, no module system from 2013
Feature Comparison
Everything below ships free and MIT-licensed. No enterprise tier, no license keys, no per-developer fees.
| Feature | UI Grid | ag-Grid Community | ag-Grid Enterprise | Vaadin Grid | Kendo UI | Syncfusion |
|---|---|---|---|---|---|---|
| Sorting | Free | Free | — | Free | Paid | Community* |
| Filtering | Free | Free | — | Free | Paid | Community* |
| Row Grouping | Free | — | ~$999/dev/yr | — | Paid | Community* |
| Tree Data | Free | — | ~$999/dev/yr | Free | Paid | Community* |
| Master/Detail Rows | Free | — | ~$999/dev/yr | — | Paid | Community* |
| Inline Cell Editing | Free | Free | — | Pro ~$159/dev/mo | Paid | Community* |
| Row Selection | Free | Free | — | Free | Paid | Community* |
| Column Resizing | Free | Free | — | Free | Paid | Community* |
| CSV Export | Free | Free | — | — | Paid | Community* |
| Excel Export | Free | — | ~$999/dev/yr | — | Paid | Community* |
| PDF Export | Free | — | ~$999/dev/yr | — | Paid | Community* |
| Virtual Scrolling | Free | Free | — | Free | Paid | Community* |
| Pagination | Free | Free | — | Free | Paid | Community* |
| Column Pinning | Free | Free | — | Free | Paid | Community* |
| Column Reordering | Free | Free | — | Free | Paid | Community* |
| Save/Restore State | Free | Free | — | — | Paid | — |
| Infinite Scroll | Free | Free | — | Free | Paid | Community* |
| Keyboard Cell Nav | Free | Free | — | — | Paid | Community* |
| Row Edit (dirty/save) | Free | — | — | — | — | — |
| Cell Validation | Free | — | — | — | — | — |
| CSV/JSON Import | Free | — | — | — | — | — |
| Shadow DOM | Free | — | — | — | — | — |
| Web Component Build | Free | — | — | Native | — | — |
| Feature Tree-Shaking | Free | — | — | — | — | — |
| SSR Support | Free | — | ~$999/dev/yr | — | — | — |
| i18n (6 locales built-in) | Free | Free | — | Free | Paid | Community* |
| React | Yes | Wrapper | Wrapper | No | Wrapper | Wrapper |
| Angular | Yes | Wrapper | Wrapper | No | Wrapper | Wrapper |
| License | MIT | MIT | Commercial | Apache/Comm. | Commercial | Comm./Community |
| Price | $0 | $0 | ~$999/dev/yr | $159/dev/mo (Pro) | ~$799/dev/yr | See below |
Bold = features where UI Grid gives you for free what competitors charge for or don't offer at all.
Syncfusion Community license is free for companies with <$1M annual revenue, ≤5 developers, and ≤$3M outside capital. Their paid tier requires a custom quote. Kendo UI ranges $799–$1,299/dev/yr depending on support level. Prices are approximate and subject to change.
Quick Start
npm install @ornery/ui-grid
The grid runs on its TypeScript engine. The Rust/WASM engine is optional and loads only when your app asks for it. To load it through your bundler, install it and enable it once at startup:
npm install @ornery/ui-grid-wasm
import { enableUiGridWasmEngine } from '@ornery/ui-grid-core/wasm';
void enableUiGridWasmEngine();
Grids switch to WASM when it is ready. No angular.json asset entry or
dist/ui-grid-wasm-web copy is needed, and applications should not register
the TypeScript pipeline as a WASM engine. Apps that never import
@ornery/ui-grid-core/wasm don't bundle the WASM package.
For an unbundled deployment that hosts the web-target WASM files separately, configure their asset root before mounting a grid. This also opts in:
import { setUiGridWasmAssetBase } from '@ornery/ui-grid';
setUiGridWasmAssetBase('https://cdn.example.com/ui-grid-assets/');
The configured root must contain
dist/ui-grid-wasm-web/ui_grid_wasm.js and its adjacent
ui_grid_wasm_bg.wasm. If WASM initialization is unavailable, the grid remains
functional through its TypeScript fallback.
Angular Component
import { Component } from '@angular/core';
import { GridOptions, UiGridComponent } from '@ornery/ui-grid';
@Component({
selector: 'app-my-grid',
imports: [UiGridComponent],
template: `<app-ui-grid [options]="gridOptions" />`,
})
export class MyGridComponent {
gridOptions: GridOptions = {
id: 'my-grid',
data: [
{ name: 'Alice', role: 'Engineer', salary: 120000 },
{ name: 'Bob', role: 'Designer', salary: 95000 },
],
columnDefs: [
{ name: 'name' },
{ name: 'role' },
{ name: 'salary', type: 'number', align: 'end' },
],
onRegisterApi: (api) => {
this.gridApi = api;
},
};
}
React
npm install @ornery/ui-grid-react @ornery/ui-grid-core @ornery/ui-grid-vanilla
import { UiGrid } from '@ornery/ui-grid-react';
import type { GridOptions } from '@ornery/ui-grid-core';
function MyGrid() {
const options: GridOptions = {
id: 'my-grid',
data: [
{ name: 'Alice', role: 'Engineer', salary: 120000 },
{ name: 'Bob', role: 'Designer', salary: 95000 },
],
columnDefs: [
{ name: 'name' },
{ name: 'role' },
{ name: 'salary', type: 'number', align: 'end' },
],
};
return <UiGrid options={options} />;
}
Web Components (Vanilla)
The grid's rendering engine is a framework-free custom element (<ui-grid-element>) built on @ornery/ui-grid-core with pure DOM rendering and Shadow DOM encapsulation. Both the Angular and React wrappers are thin bridges around this same element — they mount <ui-grid-element>, pass options, and project framework-specific templates into it via a slot-based portal system.
npm install @ornery/ui-grid-vanilla @ornery/ui-grid-core
No-bundler browser usage is supported by the browser bundle. It includes the core runtime and registers <ui-grid-element> when loaded:
<script type="module" src="./ui-grid-element.js"></script>
<ui-grid-element
grid-id="static-grid"
enable-sorting
enable-filtering
column-defs='[{"name":"name"},{"name":"role"}]'
data='[{"name":"Alice","role":"Engineer"}]'
>
</ui-grid-element>
When building from this repo, npm run build:vanilla writes that file to projects/ui-grid-vanilla/dist/browser/ui-grid-element.js. Use that browser bundle for static script-tag consumption; projects/ui-grid-vanilla/dist/index.js is CommonJS and projects/ui-grid-vanilla/dist/index.mjs is the package ESM entry for bundlers or import-map setups.
Declarative HTML usage:
<ui-grid-element
grid-id="vanilla-demo"
title="Team Roster"
enable-sorting
enable-filtering
column-defs='[
{ "name": "name" },
{ "name": "role" },
{ "name": "salary", "type": "number", "align": "end" }
]'
data='[
{ "name": "Alice", "role": "Engineer", "salary": 120000 },
{ "name": "Bob", "role": "Designer", "salary": 95000 }
]'
>
</ui-grid-element>
<script type="module">
import { defineStandaloneUiGridElement } from '@ornery/ui-grid-vanilla';
await defineStandaloneUiGridElement(); // registers <ui-grid-element>
</script>
Supported declarative inputs include boolean flags (enable-sorting, enable-filtering), scalar attributes (grid-id, title, row-height), and JSON attributes (column-defs, data).
For callbacks, function-valued column definitions, or high-frequency updates, use the options property:
import { mountVanillaUiGrid } from '@ornery/ui-grid-vanilla';
await mountVanillaUiGrid(document.getElementById('app'), {
id: 'mounted-grid',
data: [{ name: 'Alice', role: 'Engineer' }],
columnDefs: [{ name: 'name' }, { name: 'role' }],
});
Features
- Sorting — click column headers to cycle asc/desc/none, custom comparators, programmatic API
- Filtering — per-column inputs with conditions: contains, exact, startsWith, endsWith, greaterThan, regex, custom predicates
- Row Grouping — nested multi-column grouping with collapsible group headers
- Tree View — hierarchical data with expand/collapse per node, arbitrary nesting depth
- Expandable Rows — master/detail pattern with custom templates (Angular
ng-template, React render prop, or vanilla<template>slot) - Cell Editing — inline spreadsheet-style editing with full keyboard navigation (Tab, Enter, Escape), edit-on-focus, Enter/Tab commit+move across editable columns
- Keyboard Cell Navigation — Arrow/Tab/Home/End navigation with wrap/clamp modes, focus persistence across re-renders,
keyDownOverridesfor custom key handling, fullgridApi.cellNavsurface - Row Selection — click/shift/ctrl/drag-paint mouse selection, keyboard (Space, Ctrl+A), row-header checkbox column, select-all header,
isRowSelectablehook, 13 options, 18 API methods, 3 events - Column Resizing — drag column borders to resize, programmatic API, persisted via save/restore state
- Row Edit — dirty/saving/error row lifecycle with
rowEditWaitIntervaldebounce,setSavePromisepattern, auto-retry on error, visual row state indicators - Cell Validation — declarative per-column
validators(built-inrequired,minLength,maxLength+ custom), async validator support, invalid cell markers with error messages,gridApi.validatesurface - Pagination — client-side or external pagination with configurable page sizes
- Infinite Scroll — bi-directional infinite scrolling with loading state management,
needLoadMoreData/needLoadMoreDataTopevents, full public API - Column Pinning — freeze columns left or right with CSS
position: sticky, programmatic API, save/restore state - Column Moving — HTML5 native drag-and-drop column reordering
- CSV Export — download visible/selected/all rows with formula-injection protection, full option matrix (separator, header filter, field callbacks, BOM compatibility)
- Excel Export — ExcelBuilder-compatible sheet data with native numeric/boolean types preserved, configurable filename/sheet/header/custom formatters
- PDF Export — pdfMake-ready document definition with orientation/page size/styles/header/footer/custom formatter, auto-download when pdfMake is available
- CSV/JSON Import — file picker or programmatic import, full CSV parser (quoted values, escaped quotes, CRLF), header-to-column mapping, integrates with row-edit for dirty marking
- Export/Import Menu —
buildGridExporterMenuItems()with per-format and per-scope flags, i18n-driven menu labels - Virtual Scrolling — virtual scroll viewport, auto-enabled at 40+ rows
- Save/Restore State — serialize and restore sort, filters, grouping, collapsed groups, pinning, column order, column widths, pagination, selection, focused cell, tree/expandable expansion, and scroll position (per-field opt-in flags)
- Auto Resize — ResizeObserver-driven viewport height recalculation
- Custom Cell Templates — Angular
ng-template, ReactcellRenderersmap (per-column render functions), vanilla<template>slots with slot-based portal projection - Shadow DOM — encapsulated styles with CSS custom property and
::part()hooks - Web Component — ships as
<ui-grid-element>, a framework-free vanilla custom element (@ornery/ui-grid-vanilla); Angular and React wrappers mount this same element and project templates into it - Feature-Flag Builds — compile-time tree-shaking of unused features
- i18n — 6 locales built-in (English, Spanish, French, German, Japanese, Simplified Chinese), runtime
gridApi.i18nfor language switching, fallback chain (options.labels→ current locale → en-US), register additional locales viagridApi.i18n.add() - SSR Support — server-side rendering with platform-safe guards
Theming
The grid renders inside Shadow DOM. Customize it via the public --ui-grid-* CSS custom properties:
.my-app {
--ui-grid-surface: #1e1b2e;
--ui-grid-accent: #8b5cf6;
--ui-grid-header-background: #2d2640;
--ui-grid-cell-color: #e2e0f0;
--ui-grid-border-color: rgba(139, 92, 246, 0.2);
--ui-grid-row-hover: #322e4a;
}
Legacy --app-ui-grid-* aliases remain supported as a fallback for older app themes, but new consumer theming should target only --ui-grid-*.
Target structural elements with ::part():
app-ui-grid::part(header) {
text-transform: uppercase;
letter-spacing: 0.05em;
}
See docs/theming.md for the full CSS variable reference grouped by grid section, ::part() hooks, and the demo app's 4-mode theme system.
Custom Builds
Ship only the features you use:
# Only sorting and filtering — everything else is tree-shaken
node scripts/build-grid.mjs --features sorting,filtering
# Bake in a locale at build time
node scripts/build-grid.mjs --features sorting,filtering,pagination --locale i18n/fr-FR.json
# See all available flags
node scripts/build-grid.mjs --list
See docs/custom-builds.md for the full feature flag table and build presets.
Documentation
| Guide | Description |
|---|---|
| Getting Started | Install, minimal setup, run the demo |
| Features | Overview of all features with code examples |
| Theming | CSS custom properties, ::part() hooks, sample themes |
| API Reference | GridOptions, GridColumnDef, UiGridApi |
| Cell Editing | Keyboard navigation, conditional editing, API |
| Tree View | Hierarchical data, options, API |
| Expandable Rows | Master/detail, template context, API |
| Custom Builds | Feature flags, build presets, locale baking |
| Web Component | Vanilla <ui-grid-element> custom element usage |
| Internationalization | Runtime overrides, build-time locales |
| Accessibility | ARIA roles, keyboard navigation, screen reader support |
| Rust Project | Rust/WASM implementation, egui, and native adapters |
Interactive versions of all web documentation are also available in the live demo.
Development
npm start # Dev server at localhost:4200
npm test # Run tests (Vitest)
npm run build # Production build
npm run build:library # Build the library (ng-packagr)
npm run start:vanilla # Run the framework-neutral browser demo at 127.0.0.1:4174
Compatibility
| Dependency | Version |
|---|---|
| Angular | 21.2 |
| TypeScript | 5.9 |
| RxJS | 7.8 |
| Node | 22.20 |
| npm | 11.11 |
Contributing
Contributions are welcome. Please open an issue first to discuss what you'd like to change.
- Fork the repository
- Create your feature branch (
git checkout -b feature/my-feature) - Run
npm testto ensure all tests pass - Submit a pull request
License
MIT
Repo liên quan
Storybook is a frontend workshop maintained at storybookjs/storybook. It renders UI components and pages in isolation from your main application. Core renderers include React, Angular, Vue 3, Web Components, HTML, Ember, Svelte, and Preact, plus React Native and community support for Qwik and SolidJS. It's released under the MIT license.
33 JavaScript Concepts organizes core JavaScript topics -- from primitive types to the event loop to design patterns -- into a linked list of focused explanations with code examples, aimed at developers filling gaps in their fundamentals.
freeCodeCamp is a free, self-paced curriculum for learning to code, published as open source at freeCodeCamp/freeCodeCamp. It's a 501(c)(3) nonprofit funded by donor support, structured around six certifications in its Full-Stack Developer Curriculum, each gated by required projects instead of open-book quizzes. The repository also carries beta language certifications for developers, interview-prep resources, and the code that runs the live freecodecamp.org platform.
What GitHub issues dated 2014-10-10 to 2025-09-26 say about Vue 2, now at End of Life, plus where the repo stands today.
Trả lời nhanh
angular-ui/ui-grid có bao nhiêu sao?
angular-ui/ui-grid có 5.4k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/angular-ui/ui-grid. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
angular-ui/ui-grid có những chủ đề gì?
GitHub topics của angular-ui/ui-grid: "angular", "javascript", "ui-grid". TopGit xếp repo vào nhóm Frontend.
angular-ui/ui-grid còn đang phát triển không?
Commit gần nhất trên angular-ui/ui-grid là 8 ngày trước (theo timestamp GitHub). Repo có 2.4k fork — một chỉ báo về mức độ quan tâm của cộng đồng.
angular-ui/ui-grid viết bằng ngôn ngữ gì?
angular-ui/ui-grid chủ yếu viết bằng TypeScript. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Cùng nhóm Frontend còn repo nào?
angular-ui/ui-grid thuộc nhóm Frontend trên TopGit, cùng 3 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về angular-ui/ui-grid ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/angular-ui/ui-grid là nguồn chính thức.
Vì sao angular-ui/ui-grid được xếp vào nhóm Frontend?
TopGit xếp angular-ui/ui-grid vào nhóm Frontend dựa trên GitHub topics và mô tả của repo (gắn thẻ: "angular", "javascript", "ui-grid"). Việc phân loại dựa trên metadata thật của repo, không phải đoán theo cảm tính biên tập.
Đọc đầy đủ README ở tab phía trên.
ui-grid có đáng để bạn bỏ thời gian?
ChatGPT, Claude và Perplexity đều đọc được trang này. Hỏi thử xem họ nghĩ gì về ui-grid.