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

Programmatically selecting prev/next in tree #6

Closed
Alex-Sokolov opened this issue Jun 19, 2018 · 3 comments
Closed

Programmatically selecting prev/next in tree #6

Alex-Sokolov opened this issue Jun 19, 2018 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@Alex-Sokolov
Copy link
Contributor

Is it possible to move selection by code?

For example, assume that selected Image Block 3:

2018-06-19 11 52 21

If we call method up — selection moved to Image Block 2
If we call method down — selection moved to Text Block 4

Thanks!

@holiber holiber added the question Further information is requested label Jun 19, 2018
@holiber holiber self-assigned this Jun 19, 2018
@holiber
Copy link
Owner

holiber commented Jun 19, 2018

That looks like a good proposal. However, it is not clear how up and down methods are going to work with multiple selections. So I'm going to figure out some more flexible solution.

@holiber
Copy link
Owner

holiber commented Jun 19, 2018

@Alex-Sokolov you can use getPrevNode and getNextNode methods from v1.6.0. See example keyboardcontrols.html in the demo folder.

@Alex-Sokolov
Copy link
Contributor Author

@holiber Thanks! :)

SamuelIrungu pushed a commit to SamuelIrungu/vue-tree-panel that referenced this issue Jul 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants