Results 1 to 3 of 3

Thread: afterBodyEl related query

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    May 2013
    Posts
    27
    Vote Rating
    0
      0  

    Default Unanswered: afterBodyEl related query

    I need to render a image beside component this is working fine for "textfield" but for combobox it is rendering bottom of the component.I am trying to use "afterBodyEl" config and below is my following code

    Code:
       var length=Ext.getCmp(id).bodyEl.dom.children.length                            console.log("The length i s"+length);                            for(var x=0;x<length;x++)                            {                                var tagid = 'myid'+i;                                console.log("the tag id is" + tagid);                                var abc = Ext.getCmp(id).bodyEl.dom.children[x];                                    Ext.DomHelper.insertAfter(abc, {                                        id : 'tagid',                                        tag : 'span',                                        cls : 'np-info-field'                                    }, true);                            }                                                    }                    }                    console.log(Ext.getCmp('check5'));                    var xyz=Ext.getCmp('check5').bodyEl.dom.children[0];                                                            Ext.DomHelper.append(xyz, {                                        id : 'mno',                                        tag : 'span',                                        cls : 'np-info-field'                                    }, true)
    MY CSS CODE
    Code:
    .np-info-field {       background-image: url("../images/u191_normal.png");    background-position: left center;    background-repeat: no-repeat;    margin-right: -22px;    padding-right: 22px;      vertical-align:top;}
    This is my output .In the output for combo image is rendered bottom i need to render similar to "textfield".
    Attached Images Attached Images

Posting Permissions

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