Compare Revisions

Menu

Change Revisions

Revision 120061:

Revision 120061 by MykMelez on

Revision 365349:

Revision 365349 by Canuckistani on

Title:
Menu
Menu
Slug:
Jetpack/UI/Menu
Jetpack/UI/Menu
Content:

Revision 120061
Revision 365349
n8      <strong>Note:</strong> <span class="author-g-abp0twjvvqmqlon8      <strong>Note:</strong> <span class="author-g-abp0twjvvqmqlo
>uk">This page documents the Jetpack Prototype, which is&nbsp; no >uk">This page documents the Jetpack Prototype, which has since be
>longer under active development. Read the <a class=" link-https" >en replaced by the Add-on SDK. Please see the <a href="https://wi
>href="https://jetpack.mozillalabs.com/prototype.html" rel="extern>ki.mozilla.org/Jetpack" title="https://wiki.mozilla.org/Jetpack">
>al nofollow" target="_blank" title="https://jetpack.mozillalabs.c>wiki page</a> and <a href="https://addons.mozilla.org/en-US/devel
>om/prototype.html">experiment report</a></span> <span class="auth>opers/docs/sdk/latest/" title="https://addons.mozilla.org/en-US/d
>or-g-abp0twjvvqmqlouk">for what we learned from it and the <a cla>evelopers/docs/sdk/latest/">online documentation</a> for more inf
>ss=" external" href="http://mozillalabs.com/jetpack/2010/03/09/an>omration on how to use the Add-on SDK.</span>
>nouncing-the-jetpack-sdk/" rel="external nofollow" target="_blank 
>" title="http://mozillalabs.com/jetpack/2010/03/09/announcing-the 
>-jetpack-sdk/">blog post announcing the first SDK release</a> fo< 
>/span><span class="author-g-abp0twjvvqmqlouk">r what we're up to  
>next!</span> 
n17      Because it is still under development, the&nbsp;API currentn17      Because it is still under development, the&nbsp;API current
>ly lives in the <a class=" link-https" href="https://wiki.mozilla>ly lives in the <a class="link-https" href="https://wiki.mozilla.
>.org/Labs/Jetpack/JEP/13" title="https://wiki.mozilla.org/Labs/Je>org/Labs/Jetpack/JEP/13" title="https://wiki.mozilla.org/Labs/Jet
>tpack/JEP/13">future</a> and must be imported before it is used:>pack/JEP/13">future</a> and must be imported before it is used:
n246    <h4 id="insertBefore(newItems,_target)">n246    <h4 id="insertBefore(newItems.2C_target)">
n326    <h4 id="replace(target,_newItems)">n326    <h4 id="replace(target.2C_newItems)">
n456              Due to a platform bug in Firefox, on OS&nbsp;X onlyn456              Due to a platform bug in Firefox, on OS&nbsp;X only
>, for menus in the menu bar only, command functions defined on me>, for menus in the menu bar only, command functions defined on me
>nuitems with submenus are not called when descendant menuitems ar>nuitems with submenus are not called when descendant menuitems ar
>e clicked.&nbsp; See <a class=" link-https" href="https://bugzill>e clicked.&nbsp; See <a class="link-https" href="https://bugzilla
>a.mozilla.org/show_bug.cgi?id=534014" title="https://bugzilla.moz>.mozilla.org/show_bug.cgi?id=534014" title="https://bugzilla.mozi
>illa.org/show_bug.cgi?id=534014">bug 534014</a> for details and a>lla.org/show_bug.cgi?id=534014">bug 534014</a> for details and a 
> workaround.>workaround.
n490            The URL of an icon to display in the menuitem. Note tn490            The URL of an icon to display in the menuitem. Note t
>hat some environments, notably <a class=" link-https" href="https>hat some environments, notably <a class="link-https" href="https:
>://bugzilla.mozilla.org/show_bug.cgi?id=527253" title="https://bu>//bugzilla.mozilla.org/show_bug.cgi?id=527253" title="https://bug
>gzilla.mozilla.org/show_bug.cgi?id=527253">Gnome 2.28</a>, do not>zilla.mozilla.org/show_bug.cgi?id=527253">Gnome 2.28</a>, do not 
> support menuitem icons either by default or at all.>support menuitem icons either by default or at all.
n675      <strong>Note:</strong>&nbsp;Selectors don't automatically in675      <strong>Note:</strong>&nbsp;Selectors don't automatically i
>nclude the children of nodes they match.&nbsp; For example, <code>nclude the children of nodes they match.&nbsp; For example, <code
>>jetpack.menu.context.page.on("a[href]")</code> does not match im>>jetpack.menu.context.page.on("a[href]")</code> does not match im
>ages contained in links.&nbsp; To match links and all elements co>ages contained in links.&nbsp; To match links and all elements co
>ntained in links, use <code>jetpack.menu.context.page.on("a[href]>ntained in links, use <code>jetpack.menu.context.page.on("a[href]
>, a[href] *")</code>.&nbsp; A future version of Jetpack may chang>, a[href] *")</code>.&nbsp; A future version of Jetpack may chang
>e this behavior; see <a class=" link-https" href="https://bugzill>e this behavior; see <a class="link-https" href="https://bugzilla
>a.mozilla.org/show_bug.cgi?id=527924" title="https://bugzilla.moz>.mozilla.org/show_bug.cgi?id=527924" title="https://bugzilla.mozi
>illa.org/show_bug.cgi?id=527924">bug 527924</a>.&nbsp; What do yo>lla.org/show_bug.cgi?id=527924">bug 527924</a>.&nbsp; What do you
>u think?&nbsp; Leave a comment on that bug or send a message to t> think?&nbsp; Leave a comment on that bug or send a message to th
>he <a class=" external" href="http://groups.google.com/group/mozi>e <a class="external" href="http://groups.google.com/group/mozill
>lla-labs-jetpack" title="http://groups.google.com/group/mozilla-l>a-labs-jetpack" title="http://groups.google.com/group/mozilla-lab
>abs-jetpack">mailing list</a>.>s-jetpack">mailing list</a>.
n789      Before running any examples, import the API from the <a clan789      Before running any examples, import the API from the <a cla
>ss=" link-https" href="https://wiki.mozilla.org/Labs/Jetpack/JEP/>ss="link-https" href="https://wiki.mozilla.org/Labs/Jetpack/JEP/1
>13" title="Labs/Jetpack/JEP/13">future</a>:>3" title="Labs/Jetpack/JEP/13">future</a>:
n877      This example will not work on OS X due to a platform bug inn877      This example will not work on OS X due to a platform bug in
> Firefox.&nbsp; Replace <code>jetpack.menu</code> with <code>jetp> Firefox.&nbsp; Replace <code>jetpack.menu</code> with <code>jetp
>ack.menu.context.page</code> to see the effect on the content con>ack.menu.context.page</code> to see the effect on the content con
>text menu.&nbsp; See <a class=" link-https" href="https://bugzill>text menu.&nbsp; See <a class="link-https" href="https://bugzilla
>a.mozilla.org/show_bug.cgi?id=526382" title="https://bugzilla.moz>.mozilla.org/show_bug.cgi?id=526382" title="https://bugzilla.mozi
>illa.org/show_bug.cgi?id=526382">bug 526382</a> for more informat>lla.org/show_bug.cgi?id=526382">bug 526382</a> for more informati
>ion.>on.
n940      See <a href="/en/Jetpack/Storage/Simple_storage#Examples" tn940      See <a href="/en/Jetpack/Storage/Simple_storage#Examples" t
>itle="en/Jetpack/Storage/Simple storage#Examples">a complete, rea>itle="en/Jetpack/Storage/Simple storage#Examples">a complete, rea
>l-word example that you can install</a> in the simple storage doc>l-word example that you can install</a> in the simple storage doc
>umentation.&nbsp; Check also <a class=" external" href="http://je>umentation.&nbsp; Check also <a class="external" href="http://jet
>tpackgallery.mozillalabs.com/tags/tutorial/jetpacks" title="http:>packgallery.mozillalabs.com/tags/tutorial/jetpacks" title="http:/
>//jetpackgallery.mozillalabs.com/tags/tutorial/jetpacks">jetpacks>/jetpackgallery.mozillalabs.com/tags/tutorial/jetpacks">jetpacks 
> tagged with "tutorial" at the Jetpack Gallery</a>.>tagged with "tutorial" at the Jetpack Gallery</a>.
t947        <a class=" link-https" href="https://wiki.mozilla.org/Labt947        <a class="link-https" href="https://wiki.mozilla.org/Labs
>s/Jetpack/JEP/14" title="https://wiki.mozilla.org/Labs/Jetpack/JE>/Jetpack/JEP/14" title="https://wiki.mozilla.org/Labs/Jetpack/JEP
>P/14">Jetpack Enhancement Proposal 14</a>>/14">Jetpack Enhancement Proposal 14</a>

Back to History