CyCraft / blitzar

Generate Vue Forms and Data-tables fast with a simple JSON-like syntax ⚡
https://blitzar.cycraft.co
MIT License
126 stars 22 forks source link

BlitzTable: drag/drop sortable #116

Open Bruno17 opened 2 years ago

Bruno17 commented 2 years ago

Blitzar seems to be an absolutely great piece of code to generate forms and tables from json. Do you think, it would be possible to implement drag/drop sortable rows into BlitzTable?

mesqueeb commented 2 years ago

@Bruno17 i'll think about it, but it's extremely complex. The main issue is design choices like, what happens when you have multiple pages ?

Bruno17 commented 2 years ago

I know. I have that functionality implemented in MIGX https://github.com/Bruno17/MIGX

It is all ExtJS/PHP in that case. It is easy for a MIGX field/Template Variable, which doesn't have pagination. But it works also for remotely paginated MIGXdb tables. The code, which does the processing after dragging looks like that: https://github.com/Bruno17/MIGX/blob/master/core/components/migx/templates/mgr/grids/dragdrop.grid.tpl#L100 https://github.com/Bruno17/MIGX/blob/master/core/components/migx/processors/mgr/default/handlepositionselector.php

I have all configs for forms and tables in MIGX stored as Json. I'm looking for ways to rebuild the ExtJS stuff with Vue/Quasar. I've looked into many Json Form Builders. Blitzar seems to be the best option for me. The only requirement, which I've missed so far, would be some kind of dragsort functionality

Bruno17 commented 2 years ago

Seems to be an old request. Just stumbled over this comment: https://github.com/quasarframework/quasar/issues/5890#issuecomment-587970308

mesqueeb commented 2 years ago

@Bruno17 😅

I was young and restless haha.

The thing is, these days it's more difficult to find the time to work on open source. Especially since I don't personally need this feature.

I will probably end up trying to implement it within a few months when I find the time. I'm open to sponsors if you want to speed up the process!