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

Add drag and drop #617

Open
skjnldsv opened this issue Oct 12, 2022 · 3 comments
Open

Add drag and drop #617

skjnldsv opened this issue Oct 12, 2022 · 3 comments

Comments

@skjnldsv
Copy link
Contributor

  1. File
  2. Folder ?
  3. Must provide a html element to use as the drop target
  4. How should it look like?
  5. Other layers of customization from an api pov ? (text, icon, whatever?)

cc @PVince81

@PVince81
Copy link

as far as I remember file and folder drop is likely the same API-wise

it's only for the "button that triggers the browser's native picker dialog" that there is a strict difference

@skjnldsv
Copy link
Contributor Author

No, there is no official API for dropping folder.
Webkit supports some badly designed custom methods. Firefox does not.

There are workarounds, like using an input in the element.

@skjnldsv
Copy link
Contributor Author

Here is an example https://jsfiddle.net/atfLe15b/

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

No branches or pull requests

2 participants