Results 1 to 4 of 4

Thread: need to place buttons on Tabpanel header in viewport

  1. #1
    Sencha Premium Member
    Join Date
    Dec 2011
    Posts
    59
    Vote Rating
    0
      0  

    Default need to place buttons on Tabpanel header in viewport

    Hi,
    Im trying to insert buttons into header of tabpanel but didnt find anything that can help me do that. tbar creates a new bar below the tabs and puts buttons on it. Attached screenshot. Rectangle marked RED is the place where I want to place the buttons. How can I do that??
    Attached Images Attached Images

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

    Default

    After the header has been created you can use insert to insert components to it. All the header is is a container using hbox layout.
    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
    Jan 2012
    Posts
    1,376
    Vote Rating
    114
      0  

    Default

    Simple solution is put your tabpanel inside a panel.

  4. #4
    Sencha User
    Join Date
    Mar 2012
    Posts
    1
    Vote Rating
    0
      0  

    Default

    Thanks for the suggestion, but can you please provide a code snippet or a link to an example?

Posting Permissions

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