Native Shell
Native Shell:AI 生成的 UI,在你的應用中原生呈現,涵蓋每個平台。iOS、Android、macOS、Windows 與 Linux 上的應用、GPUI 應用與網頁在執行時載入已簽名、沙箱隔離的 TSX 模組並繪製 th
AI 翻譯
尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證Virtual Scroll with Drag'n'drop support
翻譯準備中
取自儲存庫 README
正在載入完整 README。
檢視完整 README ↗Angular drag and drop for virtual scrolling. Sortable lists and boards that stay fast with thousands of items: only the visible rows are rendered, and drag and drop still works across all of them.
Documentation · Live demo · Changelog
ion-contentnpm install ngx-virtual-dnd
import { ChangeDetectionStrategy, Component, signal } from '@angular/core';
import {
DragPreviewComponent,
DraggableDirective,
DropEvent,
DroppableGroupDirective,
reorderItems,
VirtualSortableListComponent,
} from 'ngx-virtual-dnd';
interface Task {
id: string;
title: string;
}
@Component({
selector: 'app-tasks',
changeDetection: ChangeDetectionStrategy.OnPush,
imports: [
VirtualSortableListComponent,
DroppableGroupDirective,
DraggableDirective,
DragPreviewComponent,
],
template: `
<div vdndGroup="tasks">
<ng-template #taskTpl let-task>
<div class="row" [vdndDraggable]="task.id">{{ task.title }}</div>
</ng-template>
<vdnd-sortable-list
droppableId="backlog"
[items]="tasks()"
[itemHeight]="48"
[containerHeight]="400"
[itemIdFn]="taskId"
[itemTemplate]="taskTpl"
(drop)="onDrop($event)"
/>
</div>
<vdnd-drag-preview />
`,
})
export class TasksComponent {
readonly tasks = signal<Task[]>(
Array.from({ length: 1000 }, (_, i) => ({ id: `task-${i + 1}`, title: `Task ${i + 1}` })),
);
readonly taskId = (task: Task): string => task.id;
onDrop(event: DropEvent): void {
reorderItems(event, this.tasks);
}
}
Every draggable and droppable needs a group (here from vdndGroup), even for a single list, and the item template must be declared inside it. The Quick start explains each part, and Core concepts lists the rules that keep a setup working.
Install a skill that teaches AI coding assistants how to integrate this library:
npx skills add gultyayev/ngx-virtual-dnd
It works with Claude Code, Cursor, Windsurf, GitHub Copilot and 40+ other agents. The docs are also published as llms.txt.
See CONTRIBUTING.md to run the demo, the docs and the tests locally.
MIT