blitzar icon indicating copy to clipboard operation
blitzar copied to clipboard

BlitzTable: drag/drop sortable

Open Bruno17 opened this issue 2 years ago • 4 comments

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?

Bruno17 avatar Feb 13 '22 08:02 Bruno17

@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 ?

mesqueeb avatar Feb 13 '22 09:02 mesqueeb

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 avatar Feb 13 '22 14:02 Bruno17

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

Bruno17 avatar Feb 13 '22 22:02 Bruno17

@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!

mesqueeb avatar Feb 13 '22 23:02 mesqueeb