I'm wondering if it's possible to customize the chrome context menu? Specifically I want to add a search field to narrow down the options in my context menu. Right now I have a lot of options that will popup in one of my sub-context menus and it would be helpful if at the top of the sub-context menu I could build in a filter/search functionality. Looking at the docs this doesn't seem possible. Wondering if anybody has attempted this?
Related
I am developing a desktop application with Electron. I have added some items to the menu bar.
Sometimes I open some modal forms with bootstrap in the program. When these popups are open I want to disable the menu items.
I have made some research and some people says that the menu bar could be removed. But I do not want to create my own HTML menu.
And there is another option, maybe the best approach. Disabling all the options of each dropdown menu. Each menuitem has an enabled attribute, so it can be changed in runtime.
Is there way to avoid dropping down the menu and disable the drop-down menu?
Dynamic menus are not currently supported. This has something to do with the fact that the menus in Electron use the Chromium menu code which has no dynamic features.
When your File menu is empty, you could replace the entire menu with one that does not have the File menu in it?
I am trying to implement a context menu on a dijit tree, and the context menu should display different contents and enable/disable the menu items based on which tree node I right-clicked on. Basically what I need is a pre-processing function that gets called before the context menu is displayed where I can run some logic to determine which menu items to show/hide, enable/disable, etc. I feel like this is a very basic functionality for context menus but wasn't able to find the solution, so I'm asking people for help.
Any help would be appreciated. Thanks!
Dijit Tree has no built-in support for context menus, but you can use the Menu widget in conjunction with the Tree. The Menu widget is used for context menus, with right-click which can really suite your use-case.
Documentation and examples here:
https://dojotoolkit.org/reference-guide/1.10/dijit/Tree.html#context-menu
https://dojotoolkit.org/reference-guide/1.10/dijit/Menu.html
I am working on an extension that involves interacting with Chrome's bookmarks.
Is there anyway to either override the current Page Action dialog box for Bookmarks when you click on the star or is there anyway to change listing for the drop down of possible folders?
Barring that, is there a way to remove the star from the omnibar so that I can replace it with my own icon from my the extension?
No to all questions unfortunately.
The best your going to get is to add your own page action next to the default.
Im using the Ie developer toolbar for IE6. By selecting an element I can see the CSS being applied to it. Is there a way of seeing other overridden styles the way you can with firebug?
Thanks
I don't know about the developer toolbar, but DebugBar will show you all CSS rules applied to the element you are looking for, even if it is overridden by another one.
Here I want to add my custom menu option i.e. ColorZilla, Aptana Studio on web browser right click
You can only do this with a browser plugin. Each browser will have its own syntax for plugins and specifically adding context menu items.
Aleks G. is right you cannot do that directly within the browser.
I don't know if it can help you or if it is what you are looking for but, within the browser you can handle the right click interaction in order to display your own custom menu ( not a particular menu item but the full menu ) ... meaning the default browser menu won't get displayed at all.
In case you are interested, you can have a small sample here