Raymond wrote:

I would like to use the in-memory datasource to create a menu contains folders and each folder contains some folders, just like the bookmarks menu.

Then I suggest you base your template on the bookmarks menu template. Make your template a child of the <menu> and build shared <menupopup>s.
<menu>
<template>
<rule>
<conditions>
...
</conditions>
<action>
<menupopup>
<menu uri="?row" .../>
</menupopup>
</action>
</rule>
</template>
<menupopup onpopupshowing="..."/>
</menu>
Note: You'll need to use isempty conditions to insert <menuitem>s as appropriate.


--
Warning: May contain traces of nuts.

_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to