cprodhomme / arctic_admin

Responsive Theme for ActiveAdmin
https://arcticadmin.osc-fr1.scalingo.io
MIT License
295 stars 109 forks source link

Is there something like activeadmin-sortable? #86

Closed ckhung5 closed 4 years ago

ckhung5 commented 4 years ago

Hi, Is your feature request related to a problem? Please describe. I am thinking whether arctic_admin has some kind of method to manually sort the position of my item in Item index page? I am trying to add this gem into it but it does not work https://github.com/jcuervo/activeadmin-sortable

Describe the solution you'd like To be able to sort a list with the position that I want

cprodhomme commented 4 years ago

Hello :)

I don't think it comes from the gem because there is hardly any ruby in the library If you want some help, please explain and put your complete error ;)

ckhung5 commented 4 years ago

Hi @cprodhomme ,

Thank you for the reply.

I do not think it is an error. It is more like a feature to implement "position".

For example, I have a list of vendors that I wish to list them according to a position that I want as default is by alphabetically.

result: Vendor A - 1 Vendor C - 2 Vendor B - 3

I saw that there are some solution in Rails that people implement "position" and you can drag and move these records.

Something like this https://www.youtube.com/watch?v=Aru-XvzzGjU

cprodhomme commented 4 years ago

I think you should write the functionnality in JS and not use the gem activeadmin-sortable (because the last commit was in 2013)