Results 1 to 3 of 3

Thread: How to add HTML tags to Panel Header title?

  1. #1
    Sencha Premium Member
    Join Date
    Mar 2013
    Posts
    13
    Answers
    1

    Default Answered: How to add HTML tags to Panel Header title?

    Hi, i'm using ExtJS 4.2.2 version.
    Can anyone help me to add custom HTML tags to Panel Header?

    for example:
    Code:
    {
    ..
    title: 'My title'
    ..
    }
    I want to use code something like this
    Code:
    {
    ..
    title: '<span class="my-smth">My</span> <span class="my-title">title</span>'
    ..
    }

  2. 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).

  3. #2
    Sencha User carol.ext's Avatar
    Join Date
    Jun 2007
    Location
    Littleton, Colorado, USA
    Posts
    707
    Answers
    25

    Default

    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).

  4. #3
    Sencha Premium Member
    Join Date
    Mar 2013
    Posts
    13
    Answers
    1

    Default

    It actually works! it was my bad, i was doing something else wrong. Thanks for you replay!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •