ng-dnd / ng-dnd Goto Github PK
View Code? Open in Web Editor NEWDrag and Drop for Angular
Home Page: https://ng-dnd.github.io/ng-dnd/
License: MIT License
Drag and Drop for Angular
Home Page: https://ng-dnd.github.io/ng-dnd/
License: MIT License
within angular 13 an error is raised for the nested droplist context on simple-kanban.
ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'null'. Current value: 'false'.. Find more at https://angular.io/errors/NG0100
at throwErrorIfNoChangesMode (errors.ts:63:9)
at bindingUpdated (bindings.ts:72:12)
at ɵɵproperty (property.ts:49:1)
at KanbanListComponent_ng_template_6_Template (kanban-list.component.html:38:49)
even worse, if you drag one item like crazy between the lists often there is another error thrown:
Error in /turbo_modules/@react-dnd/[email protected]/dist/invariant.cjs.development.js (31:15)
Expected targetIds to be registered.
can you please check, if the example works for you with ng-13?
The multibackend dnd-preview-renderer renders the preview with an offset relative to the dragged element and mouse on initial drag movement.
how to archieve that the preview will always render on fixed offset (e.g. x:0 y:0) next to the cursor?
Like: react-dnd/react-dnd#232 (comment)
Thank you very much.
in my spec, I have a hover event that inserts a preview priority--placeholder to show the user where the currently dragged element can be dropped
if item.hover.listId == item.listId, then its pretty easy for me to revert this ephemeral change in the list after the user continues to hover out of of boundaries the domestic list, continue dragging and then hover over a foreign list
but if item.hover.listId != item.listId, then its hard to revert the change in the foreign list array associated with item.hover.listId
is there some sort of onhoverLeave event for SortableSpec< ... > that I can use for this scenerio to trigger a revert of the array (associated with item.hover.listId) to return to its original state before the hover?
thank you for helping me
when I clone and then cd packages/examples and then npm i, I am getting this error
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: @ng-dnd/[email protected]
npm ERR! Found: @angular/[email protected]
npm ERR! node_modules/@angular/common
npm ERR! @angular/common@"~13.3.5" from the root project
npm ERR! peer @angular/common@"13.3.11" from @angular/[email protected]
npm ERR! node_modules/@angular/service-worker
npm ERR! peerOptional @angular/service-worker@"^13.0.0 || ^13.3.0-rc.0" from @angular-devkit/[email protected]
npm ERR! node_modules/@angular-devkit/build-angular
npm ERR! dev @angular-devkit/build-angular@"~13.3.4" from the root project
npm ERR! 1 more (jest-preset-angular)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/common@"13.3.5" from @angular/[email protected]
npm ERR! node_modules/@angular/platform-browser-dynamic
npm ERR! @angular/platform-browser-dynamic@"~13.3.5" from the root project
npm ERR! peer @angular/platform-browser-dynamic@">=10.0.0" from [email protected]
npm ERR! node_modules/jest-preset-angular
npm ERR! dev jest-preset-angular@"^11.1.2" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /Users/bmcferren/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/bmcferren/.npm/_logs/2022-09-11T00_16_37_045Z-debug-0.log
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.