简体   繁体   English

kango如何单击上下文菜单打开弹出窗口

[英]kango how to open popup on click of Context menu

I am creating Kango Extension. 我正在创建Kango Extension。

under main.js here is my code 在main.js下,这是我的代码

kango.ui.browserButton.setPopup({url:'popup.html'});
kango.ui.contextMenuItem.addEventListener(kango.ui.contextMenuItem.event.CLICK, function()     {
/here i want to open popup.html

});

When i click on Extension icon. 当我单击扩展图标。 my popup script is opening. 我的弹出脚本正在打开。

Now i want when i click on Context Menu item popup will appear 现在我想要当我单击上下文菜单项时弹出窗口

Any idea ? 任何想法 ?

Thanks 谢谢

It is not possible to open the popup by code :( 无法通过代码:(

You may refer to issue raise on github for at https://github.com/KangoExtensions/kango/issues/60 您可以在https://github.com/KangoExtensions/kango/issues/60上参考github上的问题引发

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 kango 扩展弹出窗口打不开 - kango extension popup wont open 如何弹出上下文菜单并单击Chrome扩展程序中的一个菜单项? - How to popup a context menu and click on one menu item in Chrome extension? 如何通过右键单击打开 D3.js 上下文菜单 - How to open D3.js Context Menu with right click 在crossridder中单击上下文菜单时,如何打开弹出窗口对话框? - How to open a popup window dialog box when clicked on the context menu in crossridder ? 如何在左键单击而不是右键单击打开D3.js上下文菜单 - How to open D3.js Context Menu on left click instead of Right click 如何在使用Kango Framework在弹出框架中单击按钮时更改网站的背景? - How to change the website's background when a button was clicked in the popup frame using Kango Framework? mootools | 打开/关闭弹出菜单和外部单击事件 - mootools | Open/close popup menu and outer click event Kango浏览器扩展开发中关于鼠标悬停事件的弹出窗口 - Popup on mouseover event in Kango browser extension development 单击文本框文本弹出菜单应打开文本框 - click the text box text a popup menu should open with text box TippyJS-React:如何在右键单击时打开上下文菜单 - TippyJS-React: how to open context-menu on right-click
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM