Replies: 2 comments
-
Have you seen this? https://github.com/piroor/treestyletab/wiki/Fake-Context-Menu-API I would think you would just populate the menu items of the context menu to be displayed and when someone clicks on the menu item, you would know what tab to create and you would simply issue a tabs.create() with the information you are tracking. |
Beta Was this translation helpful? Give feedback.
0 replies
-
In short: you need to call |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi.. @piroor
I would like to ask you for some tips for my extension development...
I am building na extension that can search tabs and show results. The result is like a list and each item is like a tab.
I want to be able to right click on the tab item, and show a context menu like right click on a tab. I cannot make it work. I know that I can create a menu with tab contextType, but how do I turn the element into a tab component so that Firefox treats it like a tab...
I found treestyletab extension is able to right click an element and show tab context menu. I took look the source code, still cannot figure out...
Would you mind giving me some tips/directions? Thank you.
Beta Was this translation helpful? Give feedback.
All reactions