1. #1
    Sencha Premium Member
    Join Date
    Aug 2011
    Location
    Bangalore, INDIA
    Posts
    51
    Vote Rating
    0
    StutiAwasthi is on a distinguished road

      0  

    Exclamation Unanswered: Adding DOM object to ExtJS compoment

    Unanswered: Adding DOM object to ExtJS compoment


    Hi all,

    I am using Ext 4.0.7.
    I need to add a combo-box in the toolbar. In ExtJS 1.1 it is done something like this:

    filterBySelect = tb.addDom({
    tag:'select', children: [
    {tag: 'option', value:'rptNm', selected: 'true', html:'Report Number'},
    {tag: 'option', value:'rptTitlTxt', html:'Report Title'},
    {tag: 'option', value:'author', html:'Author'} ]
    });

    Where tb is Ext toolbar.
    I want the same functionality in ExtJS 4.0.7
    I found Ext.DomHelper and modified the code something like this:

    tb=Ext.create('Ext.toolbar.Toolbar',{id:'tb'});
    tb.add('Search Results By:');

    var dh=Ext.domHelper;
    var spec={
    tag:'select', children: [
    {tag: 'option', value:'rptNm', selected: 'true', html:'Report Number'},
    {tag: 'option', value:'rptTitlTxt', html:'Report Title'},
    {tag: 'option', value:'author', html:'Author'} ]
    };
    dh.append(tb, spec); // I am getting a javascript error at this line
    'Undefined' is null or not an object

    Please suggest a solution. Any other alternatives??

    Thank you

  2. #2
    Sencha User Arg0n's Avatar
    Join Date
    Apr 2012
    Location
    Germany
    Posts
    122
    Answers
    12
    Vote Rating
    16
    Arg0n will become famous soon enough Arg0n will become famous soon enough

      0  

    Default


    Does it need to be a DOM object?
    You also could use the ExtJs combobox instead and write it into the items config.

  3. #3
    Sencha Premium Member
    Join Date
    Aug 2011
    Location
    Bangalore, INDIA
    Posts
    51
    Vote Rating
    0
    StutiAwasthi is on a distinguished road

      0  

    Exclamation


    I am afraid but it has to be a DOM object,
    Ext 1.1 provided such functionality by addDom method of Ext toolbar, I am sure they must have a way to do it in Ext 4 as well.

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi