whitecube / nova-flexible-content

Flexible Content & Repeater Fields for Laravel Nova
MIT License
788 stars 228 forks source link

Feature/issue 122 drag and drop reordering functionality #374

Closed Nks closed 1 year ago

Nks commented 2 years ago

Added Drag & Drop functionality using the Sortablejs library.

https://github.com/SortableJS/Sortable

Example of functionality:

https://user-images.githubusercontent.com/349293/182276721-5b325230-bf86-4334-886e-faa1a68dc9e3.mov

The standard moveUp and moveDown methods are used.

I also removed the yarn-error.log file containing unnecessary information and put webpack.mix.js into the webpack.mix.js.dist file in case someone like me uses additional settings for the package (like browsersync or linters) during development, but it should not get into the final release.

Original request #122

Nks commented 1 year ago

@clockwork-marketing @toonvandenbos could you, please, merge it to the master? We are waiting this way too long. Thank you!

voidgraphics commented 1 year ago

Released in v1.0.4, thank you!