Create sub-menu in context-menu


#1

Hi all,

I’m currently building a package and I would like to build a multi-level context menu.
I’ve tried some tricks with the application menu syntax but no result.
I’ve looked into the documentation but nothing found.

So, some questions:

  1. Is it possible yet?
  2. What is the best way to do it?
  3. How to get the file path of selection in the tree-view?

Thank you all! :smile:


#2

This PR answers #1 and #2

And this answers #3


#3

Thank you!
It’s completely what I’m looking for but it seems I have to wait the PR request to be accepted…
Answer #3 : yeah! it helps.
EDIT: @AbeEstrada I’ve test the code from answer #3 it works very well!