1. #11
    Sencha User
    Join Date
    Feb 2011
    Posts
    1
    Vote Rating
    0
    luanaa is on a distinguished road

      0  

    Default help implement code!

    help implement code!


    someone can 'explain how to implement the code for this feature?

    tnx
    Luanaa

  2. #12
    Sencha User
    Join Date
    Dec 2008
    Posts
    27
    Vote Rating
    0
    hitekshu is on a distinguished road

      0  

    Default


    Hi Animal,
    First of all i would like to thank you for providing this plugin.

    I am getting an error in Firebug when i click on the Add button
    item is undefined
    anonymous(Object browserEvent=Event mouseout button=0 type=mouseout)ext-all-debug.js (line 30044)
    anonymous(Object browserEvent=Event mouseout button=0 type=mouseout)ext-all-debug.js (line 30065)
    h()ext-all-debug.js (line 4615)
    [Break on this error] if(item.disabled){\n


    This is the code in Ext-all-debug.js where the error points
    30044 if(item.disabled){
    30045 return {
    30046 close : null,
    30047 item : null,
    30048 el : null
    30049 };
    30050 }
    30051 }
    What is this, and how can i solve it?

  3. #13
    Sencha User
    Join Date
    Dec 2008
    Posts
    27
    Vote Rating
    0
    hitekshu is on a distinguished road

      0  

    Default


    Got it fixed. I hadmissed the implementation of stopEvent function on mouseDown

  4. #14
    Ext JS Premium Member
    Join Date
    Apr 2010
    Location
    Montréal, Canada
    Posts
    220
    Vote Rating
    5
    Christiand is on a distinguished road

      0  

    Default


    very good indeed ! Thank you!

  5. #15
    Sencha User
    Join Date
    Sep 2007
    Posts
    98
    Vote Rating
    1
    adam.jimenez is on a distinguished road

      0  

    Default


    This plugin is great. Has anyone got it working in Ext4?

  6. #16
    Sencha User
    Join Date
    Jan 2009
    Location
    Manchester, UK
    Posts
    21
    Vote Rating
    0
    ody is on a distinguished road

      0  

    Default


    I've had a go at converting this to extjs 4:

    PHP Code:
    Ext.ux.AddTabButton = (function() {

        function 
    onTabPanelRender()
        {
            
    this.addTab = new Ext.tab.Tab({
                
    text'&#160',
                
    icon'add.gif',
                
    closablefalse
            
    });

    //        this.addTab.child('em.x-tab-left').setStyle('padding-right', '6px');
    //        this.addTab.child('a.x-tab-right').setStyle('padding-left', '6px');

            
    this.addTab.on({
                
    clickthis.onAddTabClick,
                
    scopethis
            
    });

    // I'm not sure about adding the tab to the tab bar with a massive index.  Seems to work though.
            
    this.getTabBar().insert(999this.addTab);
        }

        return {
            
    init: function(tp) {
                if (
    tp instanceof Ext.TabPanel) {
                    
    tp.onRender Ext.Function.createSequence(tp.onRenderonTabPanelRender);
                }
            }
        };
    })(); 

  7. #17
    Sencha User
    Join Date
    Sep 2007
    Posts
    98
    Vote Rating
    1
    adam.jimenez is on a distinguished road

      0  

    Default


    The problem with that approach is that the addTab is not always visible when there is a tab scroller.

  8. #18
    Sencha User
    Join Date
    Sep 2007
    Posts
    98
    Vote Rating
    1
    adam.jimenez is on a distinguished road

      0  

    Default


    I created an ext4 version that switches to a toolbar when overflow is reached:
    http://www.sencha.com/forum/showthre...877#post950877

  9. #19
    Sencha User
    Join Date
    Jan 2011
    Location
    San Juan, PR
    Posts
    80
    Vote Rating
    5
    vela1606 is on a distinguished road

      0  

    Default


    Here is my take of this plugin for ExtJs 4.
    |:| GaiaEHR |:| A Open Source Software for Electronic Health Records - Lead Developer