Results 1 to 4 of 4

Thread: Tab header width change

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Nov 2011
    Location
    United Kingdom
    Posts
    7
    Vote Rating
    0
      0  

    Question Unanswered: Tab header width change

    Is there any way to set different widths of tabs in tab panel based on the tab header text width?
    e.g. if tabpanel has 3 tabs.
    1. Tab number 1
    2. Tab number 2 xxxxxxxxxx
    3. Tab number 3 xxxxxxxxxxxxxxxxxxxx
    How to set following widths of the tabs.
    1. Tab number 1 - 150px
    2. Tab number 2 xxxxxxxxxx - 180px
    3. Tab number 3 xxxxxxxxxxxxxxxxxxxx - 200px

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,316
    Answers
    3881
    Vote Rating
    1290
      0  

    Default

    You can configure the Ext.tab.Tab instance by setting the tab config on each item.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Nov 2011
    Location
    United Kingdom
    Posts
    7
    Vote Rating
    0
      0  

    Default

    I am using GWT. So can you show some example to set tab config for the tab item?

  4. #4
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,316
    Answers
    3881
    Vote Rating
    1290
      0  

    Default

    Quote Originally Posted by jalpa.pujara View Post
    I am using GWT. So can you show some example to set tab config for the tab item?
    You are in the wrong forum then. This is the Sencha Touch 2 forum, not Ext GWT forum.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

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
  •