-
Notifications
You must be signed in to change notification settings - Fork 138
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
Allow custom data copy function #56
Comments
Any update regarding this feature ? |
I try to change the value in the event (drag) but when it's drop it still keep the old value.
The if in the builderDrop is mandatory if you want to be able to sort the element with the modified type, otherwise it create a new elem each time you drop. |
Yes, the |
Maybe allowing to use .map() could be the solution if you want to avoid passing a function ? |
Anything about this feature? |
Any updates? |
I'm submitting a ... (check one with "x")
Current behavior
Currently when copying a model value,
JSON.parse(JSON.stringify(dropElmModel))
is used to copy the value. If the model value has circular references and if you want to manipulate the model data before it is copied it would be nice to provide a function that replaces the JSON copy mechanism.Expected behavior
ngxDroppable
directive has a propertycopyModelValue
or similar where you can provide a custom function to copy a value.The text was updated successfully, but these errors were encountered: