1. #21
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,353
    Vote Rating
    77
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    DirtDog,

    The suggestings regarding formatting are not merely cosmetic, they help others read your code.

    Good luck

  2. #22
    Sencha User
    Join Date
    Apr 2007
    Location
    Italy/UK
    Posts
    152
    Vote Rating
    0
    sj137 is on a distinguished road

      0  

    Smile checkbox and textfield on same line

    checkbox and textfield on same line


    editorry wrong forum... i'm using this in ext2.2

    horrible dirty (but simple to understand) hack which worked well enough for my own use, so sharing in case it's useful to anyone else


    Code:
                    var newField = new Ext.form.TextField({value:value,grow:true,hideLabel:true,checked:false});
                    newField.on('render', function(cmp) {
                        var checkbox = cmp.container.insertFirst({tag:'input',type:'checkbox'});
                        checkbox.on('click', function() {
                            newField.checked = !newField.checked;
                        });
                    });