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

Dynamic Input Reordering #2121

Closed
zSoulweaver opened this issue Jan 5, 2022 · 2 comments
Closed

Dynamic Input Reordering #2121

zSoulweaver opened this issue Jan 5, 2022 · 2 comments

Comments

@zSoulweaver
Copy link

This function solves the problem (这个功能解决的问题)

If the order of the array matters it's easy to adjust directly through the component. Currently I'm using it for a game's loot table, the order of the array doesn't really matter for my use, but it would be nice if I can put the more common items up the top rather jumbled in the rest of the entries. If the list needs to be altered later with additions it's just eternally stuck at it's position.

Although, I can see ordering of the list being essential to plenty of use cases outside of mine.

Expected API (期望的 API)

A simple hamburger styled icon which is draggable to reorganise the component would be the best solution. Alternatively, if dragging the row is too heavy for the framework, simply two up and down arrows could work fine.

Example Images:
image

image

@github-actions github-actions bot added the feature request New feature or request label Jan 5, 2022
@07akioni
Copy link
Collaborator

07akioni commented Jan 5, 2022

As you say, dnd is too heavy for a framework.

Make item orderable would take much code.

I think we may add arrow buttons later.

@07akioni
Copy link
Collaborator

07akioni commented Feb 3, 2022

closed in #2139

@07akioni 07akioni closed this as completed Feb 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants