1. #1
    Sencha User
    Join Date
    Aug 2009
    Posts
    113
    Vote Rating
    0
    lpastor is on a distinguished road

      0  

    Red face [SOLVED] fieldset title color ?

    [SOLVED] fieldset title color ?


    Hello,

    I tried to display the title of fieldset red.

    If I put color:'red', the title color isn't changed, but font color of the inner fieldset is changed :

    Code:
     {xtype: 'fieldset', title: 'Important', autoHeight: true, style:{background:'#F1F3FB', border:'1px solid red', color:'red'}, 
                        items: [
                            new Ext.form.Checkbox({fieldLabel: 'Priorité',  boxLabel: 'Urgent', name: 'urgence_demande'    }),
                            
                        ]}
    I don't find how to ?

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    92
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    You'll have to use css, e.g.
    Code:
    {
      xtype: 'fieldset',
      title: 'Important',
      autoHeight: true,
      cls: 'my-fieldset',
      items: [{
        xtype: 'checkbox',
        fieldLabel: 'Priorité',
        boxLabel: 'Urgent',
        name: 'urgence_demande'
      }]
    }
    with:
    Code:
    .my-fieldset {
      background: #F1F3FB,
      border: 1px solid red
    }
    .my-fieldset .x-fieldset-header {
      color: red
    }

  3. #3
    Sencha User
    Join Date
    Aug 2009
    Posts
    113
    Vote Rating
    0
    lpastor is on a distinguished road

      0  

    Default


    Thank's a lot Condor, I thought that there is perhaps a solution without modifying css file...

    In anyway tank you very much Condor,

    Laurent

  4. #4
    Sencha Premium Member
    Join Date
    Oct 2013
    Posts
    4
    Vote Rating
    0
    romankuzmik is on a distinguished road

      0  

    Default


    .x-fieldset-header-text for latest ExtJS

Thread Participants: 2