javascript - ExtJS Sequence Layout -
to start, let me quite new extjs , there may simple answer i'm missing.
i want put 2 items in container in no layout, displaying items sequentially. example, if have this:
{ xtype: 'container', width: 30, items: [{ xtype: 'component', html: 'this should ' }, { xtype: 'component', html: 'like single sentence. }] }
then want produced:
this should single sentence.
every layout i've found seems treat distinct items should separate columns in table, or more complicated. correct way go this? if i'm not providing enough information please let me know , i'll update question.
thanks!
improving on evan's answer, can -
ext.widget({ renderto: document.body, xtype: 'container', width: 300, items: [{ xtype: 'component', autoel: 'p', // use paragraph instead of span html: 'this should ' }, { xtype: 'component', autoel: 'p', html: 'like single sentence.' }] });
setting autoel: 'p' render components inside paragraph tags , within same div. here's fiddle
Comments
Post a Comment