Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Contextual context menus

Is there a way in Titanium Desktop to make context menus actually "contextual", that is, have different options according to where the right-click happens?

— asked October 29th 2010 by Filipe Silva
  • context-menu
  • desktop
0 Comments

1 Answer

  • Feilipe,

    There's an onContextMenu dom event that you can listen for. See https://developer.mozilla.org/en/DOM/window.oncontextmenu. Basically, you'd want to attach onContextMenu events to dom nodes and alter the context menu accordingly.

    Sean

    — answered April 29th 2011 by Sean O Shea
    permalink
    1 Comment
    • is there any method for titanium android ?

      — commented October 16th 2013 by Jignesh Kasundra
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.