Results 1 to 2 of 2

Thread: Tab with contextmenu

  1. #1
    Sencha User
    Join Date
    Apr 2014
    Posts
    107

    Default Tab with contextmenu

    Hex togehter.

    I tried to add a contextmenu to my tabs, but with no success. Is there no listeners for a rightclick or contextmenu any more? Which event shoul I use instead?

    Thanks for your help.
    LizMyself

  2. #2
    Sencha Premium User wemerson.januario's Avatar
    Join Date
    Nov 2008
    Location
    Goiânia - GO, Brazil
    Posts
    902

    Default

    small starting example

    Code:
    xtype: 'tabpanel',            items:[{
                    tab:{
                        title: 'rightclickme',
                        listeners:{
                            element: 'element',
                            contextmenu: function(evt){
                                evt.preventDefault();
                                console.log('contextmenu');
                            }
                        }
                    }
                }]
    Wemerson Januario @JanuarioCoder
    Novanti Tecnologia, Sencha MVP/ Ext JS Consultant
    ____________________________________________
    Hire me on UpWork:

    GitHub
    https://github.com/wemersonjanuario

    Treinamento e Consultoria Ext JS. QUALIFIQUE-SE JÁ!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •