Search code examples
javascriptextjsextjs4extjs4.1extjs4.2

How to underline a label text in ext js?


I am creating a label with a text in EXTJS. What config should should I specify to show it underlined?

{
    xtype: 'label',
    width: 130,
    text: 'CLIENT NAME'
    // style:'?'
 }

I want the label text CLIENT NAME underlined


Solution

  • You can use the text-decoration style to underline it.

    {
        xtype: 'label',
        width: 130,
        text: 'CLIENT NAME',
        style: 'text-decoration:underline'
    }