Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sortable menu items in Main menu plugin #181

Closed
mraf opened this issue Jan 4, 2022 · 2 comments · Fixed by #187
Closed

Sortable menu items in Main menu plugin #181

mraf opened this issue Jan 4, 2022 · 2 comments · Fixed by #187

Comments

@mraf
Copy link
Contributor

mraf commented Jan 4, 2022

Please enable reorder elements in a menu item list using the mouse. Click on and drag an element to a new spot within the list, and the other items will adjust to fit.

@eilrix
Copy link
Member

eilrix commented Jan 8, 2022

That would be much better to use. I'll look into that
Btw admin-panel package already exports draggable list component, so it would be something like

import { DraggableList } from  '@cromwell/admin-panel';
<DraggableList
  data={[]}
  onChange={()=>{}}
  component={Item}
/>

@mraf
Copy link
Contributor Author

mraf commented Jan 8, 2022

Thanks! Good reference for another pluggins which can use this component.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants