Results 1 to 4 of 4

Thread: Ext.FormPanel title color

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    34
    Vote Rating
    0
      0  

    Default Ext.FormPanel title color

    Hi friends

    I want title of my Ext.FormPanel in red color.

    Code:
    var projectPurchasePanel = new Ext.FormPanel({
        labelWidth: 100,
        title: 'PROJECT PURCHASE',
        frame:true,
        bodyStyle:'padding:5px 5px 0',
        width: 1090,
        defaults: {width: 1070}
    });
    how to change PROJECT PURCHASE to somecolor.

    Thanks in advance

  2. #2
    Sencha User sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,335
    Vote Rating
    90
      0  

    Default

    Hi priyapratheep,

    Try this code-

    Code:
    title: '<div style="color:red;">Project Purchase</div>',
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

  3. #3
    Sencha User
    Join Date
    Jan 2011
    Posts
    549
    Vote Rating
    54
      0  

    Default

    Alternatively, give the panel an ID or Class, then in your stylesheet do something like the following:
    Code:
    .yourclass .x-panel-header {color:#f00;}

  4. #4
    Sencha User
    Join Date
    Apr 2012
    Posts
    34
    Vote Rating
    0
      0  

    Default Thanks

    Thanks a lot ....

Tags for this Thread

Posting Permissions

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