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

Is there a way to change the HTML structure of the item dropped ? #933

Open
1 task done
joffreypersia opened this issue Sep 6, 2023 · 2 comments
Open
1 task done

Comments

@joffreypersia
Copy link

joffreypersia commented Sep 6, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe.

Is there a way to change the html structure of files dragged to the filepond box?

Our Laravel app launches many tests to check the files when they are dragged. After, we return a log with the potential errors.

I want to display this text in a box below the element when the user clicks on it, so I need to change its structure.

Here are some refs from my design.

CleanShot 2023-09-06 at 14 06 33@2x CleanShot 2023-09-06 at 14 06 24@2x CleanShot 2023-09-06 at 14 06 11@2x

Have you any idea of how I can create this?
Any tips would be constructive!

Describe the solution you'd like

I would like to be able to change the HTML of the item of the image.

  • Change the way the image fits in the wrapper (cover, not fit)
  • Add html layout and pass data

Describe alternatives you've considered

If it is not possible, maybe I might display all the log inside a modal.

@joffreypersia joffreypersia changed the title [Feature] Is there a way to change the HTML structure of the item dropped ? Is there a way to change the HTML structure of the item dropped ? Sep 6, 2023
@rikschennink
Copy link
Collaborator

You'd have to build a custom plugin, can use the poster plugin as a baseline, it's not super straightforward (fixing in v5) but very possible.

@joffreypersia
Copy link
Author

joffreypersia commented Sep 6, 2023

You'd have to build a custom plugin, can use the poster plugin as a baseline, it's not super straightforward (fixing in v5) but very possible.

@rikschennink
Thank you Rik for your quick answer.
And is it possible to disable the default way of displaying items in absolute / translate...etc and use a flex system instead ?

Thank you

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