symfony / ux

Symfony UX initiative: a JavaScript ecosystem for Symfony
https://ux.symfony.com/
MIT License
853 stars 315 forks source link

Incomplete documentation? #27

Closed AxelBriche closed 6 months ago

AxelBriche commented 3 years ago

Hello, I have installed Symfony UX Dropzone with this doc: https://user-images.githubusercontent.com/1295251/101369466-a642f800-38a8-11eb-97d6-7b143626cde4.png

The DropzoneType field is displayed inside the view, but dropzone is not loaded and I have 0 error in my chrome console, I only see that:

Capture d’écran 2020-12-07 à 16 26 40

My controllers.json is ok, the cache is clear, yarn install --force and yarn encore dev is run. What I have forget please?

PS: I am on Symfony 5.1.9.

tgalopin commented 3 years ago

You probably need to sync your Webpack Encore recipe to use the bridge and install Stimulus in your project: see the blog post on Chart.js for an example https://symfony.com/blog/new-in-symfony-the-ux-initiative-a-new-javascript-ecosystem-for-symfony#example-displaying-charts-in-php-using-symfony-ux-chart-js

celtic34fr commented 2 years ago

Hello,

I recognize that for ux-chartjs and ux-cropperjs, we find directly or not examples of use, for ux-dropzone, it is limited to the implementation on the server side and its addition in the rendering of the form. No server side code to retrieve the loaded image (s). Would it be possible to have a basic example to test easily like ux-chartjs? Could we have a correspondence between the directy setting of dropzonejs and the one we can do with ux-dropzone? Thank you in advance for everything that can be done to improve the possibility of using this library.

carsonbot commented 6 months ago

Thank you for this issue. There has not been a lot of activity here for a while. Has this been resolved?