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

Create copyOnAdd props #742

Open
David-Desmaisons opened this issue Oct 9, 2019 · 1 comment
Open

Create copyOnAdd props #742

David-Desmaisons opened this issue Oct 9, 2019 · 1 comment
Assignees

Comments

@David-Desmaisons
Copy link
Member

Proposed props:

copyOnAdd
Type: Function
Required: false
Default: (original) => { return original;}

Function called on the target component on drag end to copy an element when it is added by dropping. The unique argument is the viewModel element to be copied and the returned value is the element to be added.
Note that it differs from the clone props that is called on the source component and the drag start.

@David-Desmaisons
Copy link
Member Author

From issue #586

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

1 participant