PDA

View Full Version : How to add HTML tags to Panel Header title?



Landish
27 Mar 2014, 6:44 AM
Hi, i'm using ExtJS 4.2.2 version.
Can anyone help me to add custom HTML tags to Panel Header?

for example:


{
..
title: 'My title'
..
}

I want to use code something like this


{
..
title: '<span class="my-smth">My</span> <span class="my-title">title</span>'
..
}

carol.ext
27 Mar 2014, 8:23 AM
What about that isn't working?

I popped your title on a Panel in the API code editor and it shows "My Title" as the title. I don't have your style defined to see if that works, so I put a bold tag around one of the words and that worked.

Edit: actually the bold part was done in sencha fiddle where the style was neptune. In the API code editor I don't see the bold change (italics does show).

Landish
27 Mar 2014, 8:44 AM
It actually works! it was my bad, i was doing something else wrong. Thanks for you replay!