Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dragIndex to drag and drop event #124

Open
mkelly95 opened this issue Sep 20, 2018 · 0 comments
Open

Add dragIndex to drag and drop event #124

mkelly95 opened this issue Sep 20, 2018 · 0 comments

Comments

@mkelly95
Copy link

mkelly95 commented Sep 20, 2018

I'm submitting a ... (check one with "x")

[ ] bug report => Search github for a similar issue or PR before submitting
[ x ] feature request
[ ] support request => Sorry, we will not be able to answer every support request.  Please consider other venues for support requests

Current behavior
Currently the drop event emits a dropIndex but a dragIndex is not emitted in either the drop of drag events

Ideal behavior
Both the drag and drop events have a dragIndex to identify the index of the dragged item in the array.

What is the motivation / use case for changing the behavior?
Enables sorting other arrays reacting to the change in the model array.

Please tell us about your environment:

  • ngx-dnd version: x.x.x
    5.0.6

  • Angular version: 2.x.x
    5.2.10

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

  • Language: [all | TypeScript X.X | ES6/7 | ES5]

@mkelly95 mkelly95 changed the title Add dragIndex to drag event Add dragIndex to drag and drop event Oct 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants