1. #1
    Ext User
    Join Date
    Jun 2008
    Posts
    29
    Vote Rating
    0
    avilanchee is on a distinguished road

      0  

    Default Handling close event in tabitem

    Handling close event in tabitem


    needed help in handling cloe event in a tabitem .

    Thanks
    Avinash

  2. #2
    Sencha User
    Join Date
    Nov 2008
    Location
    Vienna - Austria
    Posts
    870
    Vote Rating
    1
    micgala is on a distinguished road

      0  

    Default


    Hi.

    For listening to a close tab event, you need to add this listener to your TabPanel:

    Code:
    addListener(Events.Remove, closingListener);
    Where closingListener is:

    Code:
    private Listener<TabPanelEvent> closingListener = new Listener<TabPanelEvent>() {
            public void handleEvent(TabPanelEvent be) {
                TabItem tabItem = be.getItem();
                //handle it the way you need
            }
        };

Thread Participants: 1