Page 3 of 3 FirstFirst 123
Results 21 to 22 of 22

Thread: Elements on Same Line

  1. #21
    Sencha User jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    DC Area =)
    Posts
    16,364
    Vote Rating
    86
      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
      0  

    Smile 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;
                        });
                    });

Page 3 of 3 FirstFirst 123

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •