开发者

How to define an icon for my context menu item?

How can I define an icon for a context menu item without declaring it in manifest.json?

For example I want to offer the possibility to change the icon in the options.

I thought I could use something like that, but nothing found in the Docs:

chrome.contextMenus.create( {'type': 'normal',
                             'title': 'CustomMenu',
          开发者_StackOverflow中文版                   'image': 'http://www.example.org/img.png'
                            }
                           );


From looking at the current documentation: http://code.google.com/chrome/extensions/contextMenus.html You cannot update the icon.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜