Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Ext User
    Join Date
    May 2008
    Posts
    97
    Vote Rating
    0
    jraue is on a distinguished road

      0  

    Lightbulb Feature Request: Closeable TabItem with possibility to abort closing

    Feature Request: Closeable TabItem with possibility to abort closing


    Hi,

    I would like to implement a closeable TabItem that asks a confirmation message when the close button is clicked and aborts the closing if the user does not confirm.

    IMHO, this would be possible if TabPanel could be expanded a bit at line 740, currently:

    void onItemClick(TabItem item, ComponentEvent ce) {
    ce.stopEvent();
    Element target = ce.getTarget();
    if (fly(target).getStyleName().equals("x-tab-strip-close")) {
    remove(item);
    item.fireEvent(Events.Close, new TabPanelEvent(this, item));
    return;
    } else if (item != activeItem) {
    setSelection(item);
    }
    }

    It should fire an Events.BeforeClose event and conditionally execute the remove item. Should be realizable in a few minutes and would help me a great deal.

    Thanks,

    Joachim

  2. #2
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    2
    gslender is on a distinguished road

      0  

    Default


    TabPanel does support
    Code:
        BeforeRemove : TabPanelEvent(tabPanel, item)
        Fires before a item is removed. Listeners can set the doit field to false to cancel the action.
    
            * tabPanel : this
            * item : the item being removed

    does that not work as expected?

  3. #3
    Sencha - GXT Dev Team darrellmeyer's Avatar
    Join Date
    May 2007
    Location
    Washington, DC
    Posts
    2,242
    Vote Rating
    2
    darrellmeyer is on a distinguished road

      0  

    Default


    TabItem now fires a BeforeClose event which can be canceled. Also, TabPanel was updated so that BeforeRemove is fired before the item has been closed.

    Fixes are in SVN.

  4. #4
    Ext User
    Join Date
    May 2008
    Posts
    97
    Vote Rating
    0
    jraue is on a distinguished road

      0  

    Default


    Thanks a lot, guys!

Thread Participants: 2