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

feat(dragAndDrop): page.dragAndDrop #6910

Merged
merged 3 commits into from
Jul 19, 2021

Conversation

JoelEinbinder
Copy link
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
Member

@JoelEinbinder whats the status on this?

@JoelEinbinder
Copy link
Contributor Author

Needs a discussion of the api.

@JoelEinbinder JoelEinbinder marked this pull request as ready for review July 8, 2021 21:23
docs/src/api/class-frame.md Outdated Show resolved Hide resolved
docs/src/api/class-page.md Outdated Show resolved Hide resolved
src/server/frames.ts Outdated Show resolved Hide resolved
types/types.d.ts Outdated
* @param selector2
* @param options
*/
dragAndDrop(selector1: string, selector2: string, options?: {
Copy link
Member

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
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