Results 1 to 5 of 5

Thread: Default font type/size in formPanel

  1. #1
    Sencha User
    Join Date
    Jun 2012
    Posts
    42

    Default Default font type/size in formPanel

    Hello,

    I was wondering which is the default font type and font size for the formPanel labels, any help is appreciated.

    Thanks in advance,

    Gery

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

    Default use "labelStyle" config

    Hi Gerry,

    The default style of the form panel label is -
    Code:
    .x-form-item-label {
        -moz-user-select: -moz-none;
        cursor: default;
        float: left;
        font-size: 12px;
        padding: 3px 0 0;
        position: relative;
        z-index: 2;
    
    
    }
    You can use labelStyle config of formPanel item to give css style to the relative item label like-
    Code:
    newExt.FormPanel({
        height:100,
        renderTo:Ext.getBody(),
        items:[{ 
           xtype:'textfield',
            fieldLabel:'Name',
            labelStyle:'font-weight:bold;font-size:14px;color:blue;'
       }]
    });
    For more info read API docs - http://docs.sencha.com/ext-js/3-4/#!...cfg-labelStyle
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

  3. #3
    Sencha User
    Join Date
    Jun 2012
    Posts
    42

    Default

    thanks a lot sword-it for your reply! and what is the default font-family type? arial? I think the font-family type is the same for all the components, is that right?

  4. #4
    Sencha User
    Join Date
    Jan 2011
    Posts
    549

    Default

    Quote Originally Posted by Gery View Post
    thanks a lot sword-it for your reply! and what is the default font-family type? arial? I think the font-family type is the same for all the components, is that right?
    The default font family in Ext-all.css is Tahoma, but you can overwrite this very simply by adding a line of your own CSS to overwrite this...

  5. #5
    Sencha User
    Join Date
    Jun 2012
    Posts
    42

    Default

    cool! thanks a lot willigogs!

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
  •