Mobile/Fennec/Extensions/UserInterface: Difference between revisions

Jump to navigation Jump to search
→‎Site Menu: link to new API documentation
(→‎Anatomy of the Fennec UI: changes to site menu and context menu)
(→‎Site Menu: link to new API documentation)
Line 186: Line 186:
By default it shows security information, controls to add a search providers and clear site-specific preferences, and commands to share, save, or find within the page.
By default it shows security information, controls to add a search providers and clear site-specific preferences, and commands to share, save, or find within the page.


Add-ons can use the site panel to display additional information or actions related to the current page.  To extend the site menu, add a new <tt>pageaction</tt> element within the <tt>#pageactions-container</tt> hbox.  For an example, see the [http://bitbucket.org/mbrubeck/readlater/src/tip/content/overlay.xul overlay.xul from the "Read Later" add-on].
Add-ons can use the site panel to display additional information or actions related to the current page.  For documentation see [[/Site Menu]].
 
Fennec 2.0 adds a new <tt>PageActions.register</tt> API for add-ons to show and hide items in the site menu. (Documentation coming soon.)
 


==== Context Menu ====
==== Context Menu ====
canmove, Confirmed users
1,584

edits

Navigation menu