Threaded View

  1. #1
    Sencha User
    Join Date
    May 2013
    Posts
    27
    Vote Rating
    0
    jojo3091 is an unknown quantity at this point

      0  

    Default Unanswered: afterBodyEl related query

    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

Thread Participants: 2