I have two unordered list with draggable <li> items. I want the <li> items to be draggable and droppable on the <li> items of the other list and get both the id of the dragged <li> item and the id of the <li> item on which the dragged one has been dropped. currently I can get the element ID of the dragged item by doing thisevent.item.element.nativeElement.id. is it possible to get the id of the element on which the item has been dropped?
Angular: How to get element ID of item on which other element has been dropped
593 views Asked by user3261212 At
1
There are 1 answers
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 DRAG
- can't drag boxes to specific time slot in weekly calendar
- How to disable dragging while resizing a card using the @dnd-kit/core library in React?
- Create a grid form to add components and move them to specific locations
- React zooming and dragging image
- JavaScript for Touch and Dragging Horizontally on Mobile
- Change the appearance of dragged element
- how to automate dragndrop using cypress plugin
- Image not being dragged correctly when zoomed in
- Simulating Drag and Drop Events in MacOS using Swift issue in apps
- Drag and drop events are not wokring inside Quill editor
- Why DragAndDrop does only work with the last added Button?
- Using Hammer + chart + chart plugin zoom not work in mobile
- Finding the correct positions for nodes when dragging an SVG element after zooming/panning in javascript
- JavaFX Changing the pivot rotation makes the rectangle jump
- Is there a way to dynamically set onDrag on and off in SwiftUI?
Related Questions in ANGULARDRAGANDDROPLISTS
- Nested Drag and Drop in Angular: Appending Item of one list into children of items of other list on Hover
- Index identified when using Angular Drag and Drop CDK is incorrect, causing misaligned order in array
- Angular CDK drag and drop multiple nested cdkDropList not working
- How to create list of Component for drag and drop CDK angular
- Angular 9 DragDrop - How to stop the DropList "Element-Shuffle" Animation
- Dragable grid angular
- angular drag and drop reusable components
- Angular drag and drop: Items should not remove from container after drag and dropped
- how to get array length in Angular Drag and Drop Component
- How to save order of Angular reordered list that I get from the back-end
- Drag and Drop with lists in different components - Angular cdk
- drag and drop in angular 7
- Angular CDK Drag and drop with placeholders in one of the drop lists
- How to create droplist items dynamically with Angular8?
- Angular: How to get element ID of item on which other element has been dropped
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?
Popular Tags
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)
I think you could use the same event and then use event.target