Skip to content

feat(dragAndDrop): page.dragAndDrop#6910

Merged
JoelEinbinder merged 3 commits intomicrosoft:masterfrom
JoelEinbinder:drag_api
Jul 19, 2021
Merged

feat(dragAndDrop): page.dragAndDrop#6910
JoelEinbinder merged 3 commits intomicrosoft:masterfrom
JoelEinbinder:drag_api

Conversation

@JoelEinbinder
Copy link
Copy Markdown
Contributor

@JoelEinbinder JoelEinbinder commented Jun 4, 2021

Waiting for the chromium specific changes to land.

Proposed api: page.dragAndDrop(selector1, selector2, options)

Also exists on the frame.

Assuming people like the api I will go write some docs.

#7562

@mxschmitt
Copy link
Copy Markdown
Contributor

@JoelEinbinder whats the status on this?

@JoelEinbinder
Copy link
Copy Markdown
Contributor Author

Needs a discussion of the api.

@JoelEinbinder JoelEinbinder marked this pull request as ready for review July 8, 2021 21:23
types/types.d.ts Outdated
* @param selector2
* @param options
*/
dragAndDrop(selector1: string, selector2: string, options?: {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's call it maybe source and target everywhere? So it also reflects nicer in auto completion. Some editors show the parameter name in the parameter list and selector1 and selector2 might be not idiomatic.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants