javascript - ExtJS Label orientation -


how make extjs label rendered horizontally in:

------------ -          - ------------ 

render vertically in:

---- -  - -  - -  - ---- 

including text within of course.

in css set text's style using writing-mode: vertical-lr; write text in appropriate direction (source). in case, in order components housing label render @ proper size, need change direction of whole container.

therefore, possible in extjs 4.1+? if yes, how? fiddle highly appreciated!

in order extjs, need draw text item @ 90 degrees:

ext.create('ext.panel.panel', {     title: 'panel verticaltextitem',     width: 300,     height: 200,     lbar: {         layout: {             align: 'center'         },         items: [{             xtype: 'text',             text: 'sample verticaltextitem',             degrees: 90         }]     },     renderto: ext.getbody() }); 

this creates panel text item rotated 90°. code sample can found in extjs documentation on ext.draw.text, , available in 4.1.0 , later. here's fiddle of above code requested.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -