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

Moving a node index under the same parent #107

Open
pierpo opened this issue Mar 28, 2023 · 1 comment
Open

Moving a node index under the same parent #107

pierpo opened this issue Mar 28, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@pierpo
Copy link

pierpo commented Mar 28, 2023

Is your feature request related to a problem? Please describe.

We are trying to move a node in a list. But we can't call lrud.moveNode with the same parent and a different index, it just doesn't do anything.

Describe the solution you'd like

lrud.moveNode('my-node', 'same-parent-as-before', { index: newIndex })

Describe alternatives you've considered

For now, our idea of a workaround is moving the node to a virtual and unaccessible node at the root of our tree, then moving it back right away in the proper parent with the proper index.
(we haven't tried it yet)

@pierpo pierpo added the enhancement New feature or request label Mar 28, 2023
@pierpo pierpo changed the title Moving a node index without changing its parent Moving a node index under the same parent Mar 28, 2023
@kukulaka
Copy link
Contributor

Hi @pierpo , sorry it's taken a little while for anyone to get back to you. LRUD has recently been moved to maintenance mode, so there a no plans to add enhancements.

BBC have recently made LRUD Spatial open source, and we recommend using this library going forward.

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

No branches or pull requests

2 participants