clr-datagrid
Skill by vmware-clarity
Builds tables with the Clarity Angular datagrid, the clr-datagrid component from @clr/angular. It covers sorting, filtering, pagination, selection, expandable rows, detail panes, virtual scroll and server-driven data.
Install clr-datagrid
Built from the published package, never by AI.
git clone --depth 1 https://github.com/vmware-clarity/ng-clarity /tmp/ng-clarity && mkdir -p ~/.claude/skills && cp -r /tmp/ng-clarity/projects/angular/data/datagrid ~/.claude/skills/clr-datagridRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/vmware-clarity/ng-clarity /tmp/ng-clarity && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/ng-clarity/projects/angular/data/datagrid ~/.gemini/antigravity-cli/skills/clr-datagridAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill guides an AI assistant in building tables with the Clarity Angular datagrid, the clr-datagrid component from @clr/angular. It covers sorting, filtering, pagination, row selection, expandable rows, the detail pane, virtual scroll, server-driven data and tree data. It also explains which data mode to pick first and when a plain HTML table is enough.
The skill is for developers building Angular interfaces with Clarity. It gives code patterns for client-side, server-driven and virtual scroll grids, plus notes on selection and batch actions. For the column-definition based appfx-datagrid from @clr/addons, the source points to a separate skill.
Written from the project's SKILL.md and checked against it.
What it can do
- Client-side gridBuilds an in-memory grid with clrDgItems, where the datagrid sorts and pages the rows.
- Server-driven gridWires clrDgRefresh so the backend handles sorting, filtering and paging.
- Row selectionSets up single or multi selection with an action bar for batch actions.
- Expandable rowsAdds inline row details with clr-dg-row-detail, optionally replacing the cells.
- Detail paneShows a full record in a side panel using clr-dg-detail.
- Virtual scrollRenders very large lists with the ClrVirtualScroll template and a fixed height.
- Tree dataLoads child rows on demand with clrDgTreeItems in an ARIA treegrid.
- Column optionsCovers hideable and pinnable columns and compact density.
What you need
- @clr/angular package
- Angular with ClrDatagridModule imported in the component
Try asking
- Add a sortable, paginated clr-datagrid for my users list in Angular
- Convert this client-side datagrid to server-driven with clrDgRefresh
- Build a tree grid with lazy-loaded child rows using clrDgTreeItems
Good to know
- clrDgRowSelection is deprecated and keyboard users cannot select by row
- Virtual scroll cannot be combined with pagination
- Virtual scroll is hard to use with a keyboard, so the source suggests also offering a downloadable file
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: projects/angular/data/datagrid/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to clr-datagrid
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
clr-datagrid: common questions
When should I use a clr-datagrid instead of a plain HTML table?
The source recommends a datagrid for structured, homogeneous data where users need to search, filter, sort or run batch actions. A plain table is suggested for small static data of about 10 to 20 rows that fits on one page.
Which data mode should I pick for a large dataset?
Use server-driven mode when the backend pages, sorts and filters the data. Use virtual scroll for very large in-memory lists when comparing rows across the whole set matters.
Is this skill for appfx-datagrid too?
No. The source says the column-definition based appfx-datagrid from @clr/addons is covered by a separate appfx-datagrid skill.
How do I install clr-datagrid?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is clr-datagrid free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is clr-datagrid safe to use?
It scores 68 of 100. Grades: maintenance A, licence F, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to clr-datagrid?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
