I'm trying to build a nested drag and Drop, I have a "root" directory that contains records and directories. Each directory can contain more records, I used CDK Material Drag and Drop for that. I can drag directories and records in the "root" directory, drag records from directory to directory and drag record from the "root" directory to nested directory. but, I can't drag the record from the nested directory to the "root" directory. Please suggest to me how I can solve this issue, link: https://stackblitz.com/edit/directories-nested-drag-and-drop
Angular Nested Drag And Drop
423 Views Asked by Itay Simhayev At
1
There are 1 best solutions below
Related Questions in ANGULAR
- Firebase link existing user to anonymous account?
- It doesnt always show all the books on my homepage
- Google adsense ads.txt status cannot be not found
- When I navigate to the URL'http://localhost:4200/', it redirects me back
- Ionic Angular Standalone ion-icon are not showing at all
- How to make Angular understand that view child is of a specific type, not a general ElementRef?
- vscode, debug angular, first time, doesn't debug, 2nd time stops at main.js then it's ok
- How to perform CRUD operations on a static JSON array in Angular? (without API)
- Ngrx props<>() method in createAction()
- How to animate rotation of an image inside input control?
- Detecting click inside and outside of the listening component in Angular
- Angular - type guard not narrowing types
- In node_modules file i am getting Angular genric error while using fontawesome in angular12
- Angular 16 sending null values to API
- GoogleCloud Error: Not Found The requested URL was not found on this server
Related Questions in DRAG-AND-DROP
- React Grid Drag n Drop
- In SwiftUI and macOS how do I copy-and-paste and drag and drop multiple local file URLs into a scroll view
- need an function swap for swaping elements
- How to keep drag preview exactly the same as original item?
- How can I configure Angular Material drag and drop to allow dropping an element when the cursor is outside the drop zone
- can't drag boxes to specific time slot in weekly calendar
- How to create a function on reordering the project views using Cypress automation
- SwiftUI - List multi selection move / reorder (works on Mac but not on iOS)
- OnBeginDrag does not get called when a nested Canvas is attached in Unity UI
- Block file opening when drag and drop
- Drag&Drop feature in jquery drops element at seemingly random position
- Cannot drag boxes in calendar weekly column
- How drag and drop 2D UI elements of Canvas in OVR ray interactable?
- How to appendchild() using drag drop with 2 hierarchically equal divs? using Typescript
- Is it possible to change the cursor while dragging using HTML drag and drop
Related Questions in ANGULAR-CDK-DRAG-DROP
- only apply cdkDragHandle to the header in child component
- Angular CDK Drag and Drop Issue with Form Groups
- Patch Value in cdkDragDrop
- not able to transfer items to another list using cdk-drag
- Angular CDK Drag Drop on touch screen
- CdkDragDrop type ambiguity in Angular Firebase tutorial
- Issue in angular cdk nested drag and drop
- Issues with Implementing CDK Drag-and-Drop Sorting in Angular Multi-Select Dropdown
- place the tooltip on available large space inside a container in angular
- Cdk Drag Drop reordering smaller against larger items produce flickering effect
- Angular CDK Drag and drop, Handling multiple drag elements
- Angular Drag Drop CDK cannot drag between brothers and nested
- Angular v14 - CurrentIndex/PreviousIndex always 0 when dropping items using Angular Material CDK Drag and Drop
- Cdk DragDrop for Polygon Boundry
- Not able to disable Drop While using CDK Drag and Drop for Angular
Related Questions in ANGULAR-DRAGDROP
- Drag n Drop Flowchart Buiilder in Angular
- Angular drag and drop with nested not working as intended
- Angular - drag and drop - component is not rendering before drag start
- Angular dynamic and nested drop area not working
- Angular CDK drag and drop multiple nested cdkDropList not working
- Angular CDK Drag and Drop not working for nested drop areas
- ngx-drag-drop not compatible with primeng?
- Can’t bind to “cdkDropListData” since it isn’t a known property of ‘div’.?
- Stuck more than 2 hrs Angular CDK Drag and Drop - Not able to drop the item in the location
- Reactive form working so weird with Angular DropnDrop CDK - Items getting duplicated
- PrimeNG Order list - set handle item
- Display selected value from drop down list in Angular 13
- Angular - drag and drop from multiple containers doesn't work if one is a parent of another
- CdkDragDrop Drop not working with "ng build --prod" configuration
- Angular drag and drop, exit event, get data of removed item
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Interesting, but what an headache. Problem becomes apparent because how they are nested. The
recordsoutside ofdirectoryare just hanging there and they don't know where they can belong. I would suggest to refactor your data, so that there are no "in-between" elements or you make new category (like a unordered directory) and put the unordered elements there, then the unorderedrecordswould know at what level they can move.Here is my function that does just that:
Working example is here: https://stackblitz.com/edit/directories-nested-drag-and-drop-jzoqcq?file=app%2Fnested-drag-drop.ts