0

I've looked at the documentation and the example but it only shows ways to add/remove menu items, but not disable. Is it not possible or is there a way to do this? If so, can you please provide me a link to the full API(if there is one).

Filipe Silva
  • 21,189
  • 5
  • 53
  • 68
Can't Tell
  • 12,714
  • 9
  • 63
  • 91
  • Did you try asking at http://client01.chat.mibbit.com/?server=irc.mozilla.org&channel=%23mobile – gal007 May 28 '13 at 21:47

2 Answers2

0

Did you try watching this addon source code? Sometimes some thing are the same in mobile: https://addons.mozilla.org/en-US/firefox/addon/menu-editor/

There is a lot of people who can help you here: http://client01.chat.mibbit.com/?server=irc.mozilla.org&channel=%23mobile

gal007
  • 6,911
  • 8
  • 47
  • 70
0

You can use NativeWindow.menu.add(...) to add the menu, then use NativeWindow.menu.update(...) to disable it. See the docs for examples:

https://developer.mozilla.org/en-US/docs/Extensions/Mobile/API/NativeWindow/menu/update

Mark Finkle
  • 966
  • 4
  • 5