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

Drag-and-Drop Re-ordering in Custom TreeViews #354

Closed
rogermparent opened this issue Apr 29, 2021 · 3 comments
Closed

Drag-and-Drop Re-ordering in Custom TreeViews #354

rogermparent opened this issue Apr 29, 2021 · 3 comments
Labels

Comments

@rogermparent
Copy link
Contributor

We're not sure this is possible yet, and from from this ticket it's not looking good.

While this is a feature of the special Explorer TreeView, it seems that is the only one capable of this feature.

If it isn't, maybe another reordering mechanism like buttons on each item to move it up and down?

@mattseddon
Copy link
Member

mattseddon commented May 10, 2021

This is now in the proposed api:

  export interface TreeViewOptions<T> {
    /**
     * * Whether the tree supports drag and drop.
     */
    canDragAndDrop?: boolean
  }

Looks like the activity happened just after you referenced the vscode issue. Worth keeping an eye on it.

@rogermparent
Copy link
Contributor Author

rogermparent commented May 10, 2021

Great find! We can definitely consider using drag+drop in our UI with this on its way. Do you know if the feature's made its way into the Insiders build yet? Nope, but at least they're talking about it!

@rogermparent
Copy link
Contributor Author

Still hasn't hit the API, but slated for early September according to this sprint ticket thing. Probably doesn't need to be an open ticket for us, but we can revisit when/if the feature hits stable.

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

No branches or pull requests

2 participants