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 2007
    Posts
    3
    Vote Rating
    0
    Radu094 is on a distinguished road

      0  

    Default Ext.form.Button

    Ext.form.Button


    I often got myself into a situation where I needed to add a button into a form.

    Next to all the checkboxes and text fields, it would have been so usefull to have a Ext.form.Button.

    Yes, I know you can addButton() to a form, but those go down to the bottom and I needed some of the buttons to "stay in context" and be rendered inside the fieldset.

    Anyway... long story short I've merged part of Ext.Button and Ext.form.Field into a new class.

    PHP Code:
    form.add
                    new 
    Ext.form.Button(
                    {
    fieldLabel:'Reset Password',
                     
    text:'Reset',
                     
    icon:'key.gif',
                     
    cls:'x-btn-text-icon',
                     
    handler:function(){alert('clicked');},
                     
    descriptionText:'click here to reset your password'
                     
    })); 
    Attached Files

  2. #2
    Ext User
    Join Date
    Aug 2007
    Posts
    1
    Vote Rating
    0
    carmen is on a distinguished road

      0  

    Default buttons in the form

    buttons in the form


    Hoorah. This is exactly what I needed too. You rock.

  3. #3
    Ext User
    Join Date
    Aug 2007
    Posts
    4
    Vote Rating
    0
    JohnPeterson is on a distinguished road

      0  

    Default


    Thanks! This worked perfectly for me, awesome work

  4. #4
    Ext User
    Join Date
    Nov 2007
    Posts
    1
    Vote Rating
    0
    m3zaman is on a distinguished road

      0  

    Default Re:Ext.form.Button

    Re:Ext.form.Button


    Thanks!

    Helped me lot.

    Zaman

  5. #5
    Sencha User
    Join Date
    Jan 2008
    Posts
    6
    Vote Rating
    0
    kjh is on a distinguished road

      0  

    Default


    thanks, very helpful!

  6. #6
    dddu88
    Guest

    Default


    Hi, all,
    One issue to me is that I donot want fieldLabel for the button, but I cannot find a way to get rid of the label, if I configure it to hidelabel: true, then the button will not be lined up with the TextField, if I comment out the fieldLabel, then there will be a ":" shown up as an empty label, anybody has a way to solve this problem? Thanks in advance.

    My code is like this:
    Code:
    var formbtn = new Ext.form.Button( 
                    {//fieldLabel:'Query database', 
                     hideLabel : true,
                     text:'Retrive', 
                     icon:'images/key.gif', 
                     cls:'x-btn-text-icon', 
                     handler:function(){alert('clicked');}
                     //descriptionText:'click here to reset your password' 
                     });  
    
    
    
        var formpanel = new Ext.FormPanel({
            labelAlign: 'top',
            frame:true,
            title: 'Multi Column, Nested Layouts and Anchoring',
            bodyStyle:'padding:5px 5px 0',
            width: 600,
            height:80,
            region:'north',
            items: [{
                layout:'column',
                items:[{
                    columnWidth:.8,
                    layout: 'form',
                    items: [{
                        xtype:'textfield',
                        fieldLabel: 'Identification',
                        name: 'transID',
                        anchor:'80%'
                    }]
                    },{
                    columnWidth:.2,
                    layout: 'form',
                    items: [formbtn]
                    }]
            } ]
           // bbar:tb
    
        });

  7. #7
    Ext User
    Join Date
    Jan 2008
    Posts
    155
    Vote Rating
    0
    say2paul is on a distinguished road

      0  

    Exclamation


    I am also facing the same strange problem

  8. #8
    Ext User
    Join Date
    Jul 2007
    Location
    Toronto, Canada
    Posts
    54
    Vote Rating
    0
    Lev_A is on a distinguished road

      0  

    Default


    Quote Originally Posted by dddu88 View Post
    Hi, all,
    One issue to me is that I donot want fieldLabel for the button, but I cannot find a way to get rid of the label, if I configure it to hidelabel: true, then the button will not be lined up with the TextField, if I comment out the fieldLabel, then there will be a ":" shown up as an empty label, anybody has a way to solve this problem? Thanks in advance.

    My code is like this:
    Code:
    var formbtn = new Ext.form.Button( 
                    {//fieldLabel:'Query database', 
                     hideLabel : true,
                     labelSeparator : '',
    
                     text:'Retrive', 
                     icon:'images/key.gif', 
                     cls:'x-btn-text-icon', 
                     handler:function(){alert('clicked');}
                     //descriptionText:'click here to reset your password' 
                     });  
        });
    From Docs:
    labelSeparator : String
    The standard separator to display after the text of each form label (defaults to the value of Ext.layout.FormLayout.l...
    The standard separator to display after the text of each form label (defaults to the value of Ext.layout.FormLayout.labelSeparator, which is a colon ':' by default). To display no separator for this field's label specify empty string ''.

  9. #9
    Sencha Premium Member dawesi's Avatar
    Join Date
    Mar 2007
    Location
    Melbourne, Australia (aka GMT+10)
    Posts
    1,082
    Vote Rating
    41
    dawesi has a spectacular aura about dawesi has a spectacular aura about

      0  

    Default


    can you please add a screenshot or demo to your post, thanks :-)

  10. #10
    dddu88
    Guest

    Default


    Lev_A,

    Thanks very much, your approach to set labelSeparator : '' really works, the button is lined up with the TextField very well, the only thing is the distance between the TextField and Button is a little far away, I used anchor:'80%' for the Field and 20% for the button, it seems like the button is put in the center of the column, is there a way to put the button to the most left of the column?

    Thanks in advance.