Cancel tabChange

  • Hello, i wish to cancel change action on my tab if any condition is true.

    I have this code but i don't know how valid that.


    Ext.getCmp
    ('TabsX').on('beforetabchange',checkTab);


    function checkTab(tp,e,tab)
    {
    var myID = tp.getActiveTab().getId(); //It retrieves the ID of current Tab before of change

    //Here i have to put the code that valid if the user can change to another tab, i was read on the API help some as "put the e.cancel = true" but i'm not sure how use it.
    }

    Thanks


  • Just return false; to cancel the tabChange.







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about Cancel tabChange , Please add it free.

    editTags: xn--4cr.com