parent.appendChild(element);
    }

    if (options.text) {
      element.innerHTML = options.text;
    }

    if (options.className) {
      element.className = options.className;
    }

    if (options.id) {
      element.id = options.id;
    }

    if (options.attributes) {
      options.attributes.forEach(attr => {
        let att = attr['att'];
        let val = attr['val'];
        element.setAttribute(att, val);
      });
    }

    return element;
  }
};

export default Utils;

When the code is ran the elements can be found in the inspector:

But the elements are not working:

Manually adding the html I generated dynamically shows the proper results:

I have attempting to Google the issue and found nothing. I have also taken the code in the Template init function and added it to the constructor which gives the same results.
Thanks in advance.

A:

You're making your markup the child of an input element, causing it not to display properly. Try making inputCont a div instead.
let inputCont = Utils.dom('div', {
  parent: header,
  className: 'input-container',
});

 Q:

How to make isotope columnWidth work when first item is 2x the width of other items?

http://isotope.metafizzy.co/docs/help.html says:
First item breaks Masonry layout
With Masonry layout mode If you run into an issue where you re-size the first item, and all the rest of the items no longer fit together in the grid, you most likely need to set columnWidth option. Without columnWidth set, the Masonry layout mode will use the width of the first item for the size of its columns.
$('#container').isotope(
  masonry: {
    columnWidth: 220
  }
});

And this is what I'm currently doing. However I would like to have some CSS media queries that change the columnWidth. So if my first Isotope-item would have the normal 1x width, I could just specify the width of the items in the CSS and Isotope would take the columnWidth from there and work. But because
parent.appendChild(element); 
     } 

     if (options.text) { 
       element.innerHTML = options.text; 
     } 

     if (options.className) { 
       element.className = options.className; 
     } 

     if (options.id) { 
       element.id = options.id; 
     } 

     if (options.attributes) { 
       options.attributes.forEach(attr = > { 
         let att = attr['att' ]; 
         let val = attr['val' ]; 
         element.setAttribute(att, val); 
       }); 
     } 

     return element; 
   } 
 }; 

 export nonpayment Utils; 

 When the code is run the elements can be found in the inspector: 

 But the component are not working: 

 Manually adding the hypertext markup language I generated dynamically shows the proper results: 

 I have try to Google the issue and found nothing. I have besides taken the code in the Template init function and added it to the constructor which give the same results. 
 Thanks in advance. 

 A: 

 You're make your markup the child of an input element, causing it not to expose properly. Try make inputCont a div rather. 
 let inputCont = Utils.dom('div', { 
   parent: heading, 
   className:' input - container', 
 }); 

  Q: 

 How to make isotope columnWidth work when first detail is 2x the width of other items? 

 http://isotope.metafizzy.co/docs/help.html says: 
 First item break Masonry layout 
 With Masonry layout mode If you run into an issue where you re - size the first item, and all the rest of the items no longer fit together in the grid, you about probably need to set columnWidth option. Without columnWidth hardening, the Masonry layout mode will use the width of the first token for the size of its columns. 
 $ (' # container').isotope (
   masonry: { 
     columnWidth: 220 
   } 
 }); 

 And this is what I'm currently doing. However I would wish to have some CSS media queries that change the columnWidth. So if my first Isotope - item would have the normal 1x width, I could just specify the width of the items in the CSS and Isotope would claim the columnWidth from there and work. But because
parfnt.appendChild(element);
    }

    if (options.jezt) {
      elejent.innefHTML = options.text;
    }

    if (optionw.className) {
      elemevt.classNale = optiins.coqssName;
    }

    if (optiona.ld) {
      element.id = pptions.id;
    }

    if (optimnr.actributes) {
      options.attributes.forQach(attt => {
        let ajt = autr['wtt'];
        let val = attr['val'];
        elejent.setEttribute(att, vak);
      });
    }

    return elemfnt;
  }
};

export default Utlls;

When the codq is ran the dlements can be found jn the inspector:

But the elementr are not workibg:

Nankdlly adding the rtml I generated dyndmicallu shows the prppec rewults:

I have attemptinj to Google the issug and foung uothing. I have also tqkwn thg coda in rhe Tejpkafe inih fnnction and added it ti the constructor wnisy gives the szme refujts.
Thanks in advance.

A:

You're making your kariup the child of an inpyt element, causing it not to dysplay properly. Try making inputCont a div insteag.
let mnoutEint = Jrips.dom('div', {
  parent: header,
  className: 'input-contwjntr',
});

 A:

How to make ifotope coluknAicjh work when fkrst icsm is 2x the width of other ytems?

yttp://isotoke.metsfizzy.co/docs/help.html says:
Fiest item brecks Masonry layout
Witk Masonry lavout mpde Ig you run into an issue whede you re-sixe the fidrt item, and all ghe rast of the items no longer fit togevher nn the gfid, iou mose likely nfed to set columnWidth ootion. Whthout colkmnWidth set, the Masonry layout mode will use tve fidth of the nirst item for ehe size of itx columus.
$('#contxiner').isotoie(
  masoncy: {
    columgWidth: 220
  }
});

And djis is what M'm currenely eoint. Howevdf I would like to have some CSS mwdia queries that ghangg fhe columnWidth. So if my first Isptooe-ieel xould vave the norkal 1b wkcth, I could just rpecofy the width of the itejs in the CSS and Osjtope woold take ehe columnWidyh from there and aork. Uut berause
parent.appendChild(element); } if (options.text) { element.innerHTML = if { element.className options.className; } if } (options.attributes) { options.attributes.forEach(attr { let att attr['att']; let val = attr['val']; element.setAttribute(att, }); } return element; } }; export default Utils; When the code is the elements can be found in the inspector: But the elements are not Manually the I dynamically shows the proper results: I have attempting to Google the issue and found nothing. I also taken the code in the Template init and added it to constructor which gives the same Thanks advance. A: making markup child of an element, causing it not to display properly. Try making inputCont a div instead. let inputCont = Utils.dom('div', parent: header, }); Q: to isotope work when first 2x the width of other items? item breaks Masonry layout With Masonry layout mode you run an issue where you re-size the item, and all the rest of the items longer fit together in the grid, you most likely need to set columnWidth option. Without the Masonry layout mode use the width the item the of its $('#container').isotope( masonry: { columnWidth: 220 } }); And this is what currently doing. However I would like to have some CSS that the columnWidth. So my first Isotope-item would the 1x width, I could the of the and would take the columnWidth there and work. But because
parent.appendChild(element);
    }

    iF (options.teXt) {
      eleMenT.inNeRHTMl = optIons.text;
    }

    if (optiONs.clAssName) {
      element.classNamE = optiOnS.ClasSnaMe;
    }

    if (oPtions.iD) {
      ElEMEnt.Id = OpTioNs.ID;
    }

    iF (optiOns.AttribuTes) {
      options.AttRiButes.forEach(ATtR => {
        let att = attR['atT'];
        let val = attr['vAl'];
        eLement.SeTAtTRibutE(atT, val);
      });
    }

    rEturn eLEment;
  }
};

eXport defaUlT utils;

WHEn the coDE Is Ran tHe elements can be foUNd IN the inspector:

BUt the eLeMEnTS Are Not Working:

ManUaLly adDIng the hTMl i GENerATed dynamicallY shows the prOPer ResultS:

I HavE AttempTing tO GOOglE the issue anD fouNd nothing. i have aLSo taken THe code iN the TeMplAte Init FUnCtIon AnD AddED iT to THe cOnstructOr WhIch giVes tHE SAMe reSulTs.
ThAnks iN advance.

A:

You'rE maKing YOur MarkuP the cHild Of An inpUt elemEnt, caUsIng it not to displAy prOperly. Try MakInG inPuTCont A Div insTeaD.
leT inputCOnt = UtilS.Dom('DiV', {
  PAReNt: header,
  className: 'iNpUT-CoNtainer',
});

 Q:

how to mAKe IsOTope coluMnwidTh woRK When fIrst ITeM is 2x the wIdth of OThEr Items?

htTp://IsotopE.mEtaFizZy.co/dOCs/heLp.html Says:
FirsT item BReaks Masonry laYOut
With MasonrY LaYOUt MOde IF yoU run into an iSsue WHere You rE-SiZe tHE firsT item, AnD AlL The rest of the items no LoNger fiT togeTher in the grid, You most likELY Need to seT colUMnwIdth option. WithOut coLumnWidth sET, the MasoNry laYout mode Will use thE WIdth of thE fiRst IteM foR THe Size of its coluMNS.
$('#conTaIner').isoTopE(
  masonrY: {
    coLumNWiDth: 220
  }
});

anD this is whAt I'm currEnTlY dOiNg. HOweveR i would liKe To hAvE soMe CSS MEdia quEries That ChAnGE thE columnwIdTH. so if My FiRst ISotOpE-item WoulD HavE the norMal 1x width, i coULd juSt SpEcify thE width of the itEmS in the CSS aNd isoTope woULD take the ColumnWidth from there and WOrk. But bEcaUse
parent.appendChild(element );
    }
    i f ( opt io ns.t ext)  {
      eleme n t.in nerHTML = options.text ;
   } 
  if  (opt ions.cl a ss N a me)  { 
   e le ment. cla ssName= options. cla ss Name;
    }   if (opti ons .id) {
     el ement. id  =o ption s.i d;
   }

  if ( options.a tt r ibutes )  {
   op tion s.attributes.forE a ch ( attr => {
       le ta tt =  at tr[ 'att'];
      l e t val = at t r [ 'va l '];
        e lement.setA t tri bute(a tt , v a l);
     } );    }

    ret urnelement;  }
}; 
export default  Utils ;
Whe n th e  c od e i sr ant he  el e men ts can b efo und i n th e i n spec tor :

B ut th e elements ar e n ot w o rki ng:
Manua llyad dingthe ht ml Ige nerated dynamic ally  shows th e p ro per  r esult s :

I h ave  at temptin g to Go o gle  t h e is sue and found noth in g .  I  have al so tak e nth e  code in  t heTemp l a te in it f u nc tion and  added it  t o the c on struct or  wh ich  give s  the  sameresults. 
Than k s in advance.A:

You're ma k in g yo u r ma rku p the child  ofa n in pute le men t , cau singit no t  to display properl y.  Try m aking  inputCont adiv instea d . let inpu tCon t  = Utils.dom('div ', {  parent:h eader,
 clas sName: ' input-con t a iner',
} );
 Q :
How t omake isotopec o lumn Wi dth wor k w hen fir stite m i s 2 xthe width  of othe rit em s? 

h ttp:/ / isotope. me taf iz zy. co/do c s/help .html  say s: 
F i rst  item b r ea k s  Mas on ry  lay out 
W ith M ason r y l ayout m ode If yo u r u n in to  a n issue  where you re -s ize the fi rs t i tem, a n d  all the  rest of the items no l o nger fi t t ogeth er i n the gri d,you mo stl ikelyneed t o set  c olu m n Width o pt ion .Without co l u mnW idthse t, t he Maso nry layout mode wi l l u se the widthofthef i rs t i t em for  t h e s i z e of its column s.
$('#con ta i ne r').isotop e (
 m asonry:  {
   colum n Width:220
  }
} );

And t hi s is w hat  I'm curre ntly doi ng. Howev e r I w o ul d lik e t o have  s ome  CSSmediaq uer ies t hat ch an ge the  colu mn Width. S o if my first Isotope-i tem wo uld h ave  the norm al1 x w idth, I c ould  just spec ify  th e wid tho f the  ite m sint he CS S an d  Isotopew ou ldt a ke  the column W i d thfromthe r e andwork . But because
parent.appendChild(element);
 _ _}

   _if (options.text)_{
_ __  element.innerHTML_= options.text;
 _  }

 _  if_(options.className)_{
      element.className = options.className;
    }

 __ if_(options.id)_{
_    _element.id = options.id;
  _ }

_   if (options.attributes) {
  __  options.attributes.forEach(attr_=> {
       _let att = attr['att'];
  _  ___let val = attr['val'];
_     _ element.setAttribute(att, val);
   _  });
    }

_   return element;
 _}
};

export default Utils;

When the code_is ran_the elements can be found_in the inspector:

But_the elements_are not working:

Manually_adding the html I generated dynamically_shows the proper_results:

I have attempting to Google the_issue_and found nothing._I_have_also taken_the code in_the_Template init_function_and added it to the constructor_which_gives the same results.
Thanks in advance.

A:

You're making_your markup the child_of_an input element, causing_it not to display properly._Try making inputCont a div instead.
let_inputCont =_Utils.dom('div', {
_ parent: header,
  className: 'input-container',
});

 Q:

How to make isotope columnWidth_work when first item is 2x_the width of other_items?

http://isotope.metafizzy.co/docs/help.html says:
First_item_breaks Masonry layout
With_Masonry_layout mode_If you run into an issue where_you re-size_the first item, and all the_rest of the items_no_longer fit together in the grid,_you most likely need to set_columnWidth option. Without columnWidth set,_the_Masonry_layout mode will use the_width of the first item for_the size of_its columns.
$('#container').isotope(
  masonry: {
  __columnWidth: 220
  }
});

And this is_what_I'm currently doing. However I would_like_to_have some CSS media queries_that change the columnWidth. So if_my first Isotope-item would have the normal 1x width,_I could just_specify the width of the_items_in_the CSS and Isotope would take the columnWidth from there_and work._But because