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

No documentation for the onAfterDrop function #4379

Closed
JaneSjs opened this issue Jul 26, 2023 · 2 comments
Closed

No documentation for the onAfterDrop function #4379

JaneSjs opened this issue Jul 26, 2023 · 2 comments
Assignees
Milestone

Comments

@JaneSjs
Copy link
Contributor

JaneSjs commented Jul 26, 2023

https://github.com/surveyjs/survey-creator/blob/49273054b6bb04d9c27e4700eda513014905ffb4/packages/survey-creator-core/src/creator-base.ts#L1800C10-L1800C21

The onAfterDrop function is raised when an element was dropped to the design surface. For instance, when a user reorders questions within a survey/page/panel, or when a user reorders choices within a choice-based question. Within this event, use the options argument to get information about the processed objects.

  • options.fromElement - a source element the current element was dragged from;
  • options.draggedElement - the dragged element;
  • options.toElement - a target element to which the element was dropped.
@RomanTsukanov
Copy link
Contributor

onAfterDrop has been renamed to onDragEnd: #3832

@JaneSjs
Copy link
Contributor Author

JaneSjs commented Aug 18, 2023

@OlgaLarina OlgaLarina added this to the v1.9.104 milestone Aug 22, 2023
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

3 participants