extjs4 - How do I render a label in extjs? -


i render label. simple below :

xtype: 'label',   text: 'hi there', renderer :  function(val) {     return '<b>' + val + '</b>'; }, 

i not use cls , css file because think overkill doing.

is there way this?

use html instead of text.

fiddle: https://fiddle.sencha.com/#fiddle/mjq

{     xtype : "label",     html : "<b>bold</b><i>italic</i>" } 

Comments

Popular posts from this blog

android - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -