1. #11
    Ext User
    Join Date
    Feb 2008
    Posts
    17
    Vote Rating
    0
    kirill533 is on a distinguished road

      0  

    Default


    Quote Originally Posted by jgarcia@tdg-i.com View Post
    Any reason why you couldn't put it in there?

    Code:
    var myBtn = new Ext.Button({
    ..//
       name : "myName',
    
    
    });
    The next reason is that this is the easier way to find this button on the page. For example, it is very useful when you use Selenium testing
    Sorry for my English!

    Master-Test developer

  2. #12
    Sencha User clesquir's Avatar
    Join Date
    Jun 2009
    Posts
    28
    Vote Rating
    0
    clesquir is on a distinguished road

      0  

    Default


    Here is the 3.1.1 version of the Ext.SubmitButton to whom needs it:
    Code:
    Ext.SubmitButton = Ext.extend(Ext.Button, {
    
        onRender : function(ct, position){
            var buttonTemplate = new Ext.Template(
                '<table id="{4}" cellspacing="0" class="x-btn {3}"><tbody class="{1}">',
                '<tr><td  class="x-btn-tl"><i>&#160;</i></td><td  class="x-btn-tc"></td><td  class="x-btn-tr"><i>&#160;</i></td></tr>',
                '<tr><td  class="x-btn-ml"><i>&#160;</i></td><td  class="x-btn-mc"><em class="{2}" unselectable="on"><button  type="submit" name="{6}"  value="{5}"></button></em></td><td  class="x-btn-mr"><i>&#160;</i></td></tr>',
                '<tr><td  class="x-btn-bl"><i>&#160;</i></td><td  class="x-btn-bc"></td><td  class="x-btn-br"><i>&#160;</i></td></tr>',
                '</tbody></table>');
            buttonTemplate.compile();
            this.template = buttonTemplate;
    
            var btn, targs = this.getTemplateArgs();
    
            targs.push(this.text || ' ', this.name);
    
            if(position){
                btn = this.template.insertBefore(position, targs, true);
            }else{
                btn = this.template.append(ct, targs, true);
            }
            /**
             * An {@link Ext.Element Element} encapsulating the Button's clickable element. By default,
             * this references a <tt>&lt;button&gt;</tt> element. Read only.
             * @type Ext.Element
             * @property btnEl
             */
            this.btnEl = btn.child(this.buttonSelector);
            this.mon(this.btnEl, {
                scope: this,
                focus: this.onFocus,
                blur: this.onBlur
            });
    
            this.initButtonEl(btn, this.btnEl);
    
            btn.un(this.clickEvent, this.onClick, this);
    
            Ext.ButtonToggleMgr.register(this);
        }
    });
    
    // register ptype
    Ext.preg('submitbutton', Ext.SubmitButton);

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar