Results 1 to 6 of 6

Thread: Carousel Title Bar

  1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    15
    Vote Rating
    0
      0  

    Default Answered: Carousel Title Bar

    Is there a way to have a carousel titlebar locked to the main fullscreen carousel I have below it? I'm trying to make a UI that looks similar to the Google Play store carousel and titlebar.

    Any help is much appreciated. Thanks.

  2. For that then you need to have a titlebar for each item.

  3. #2
    Sencha User
    Join Date
    Mar 2012
    Location
    Bangalore, India
    Posts
    139
    Answers
    2
    Vote Rating
    1
      0  

    Default

    items: [
    {
    xtype:'toolbar',
    title:'google play',
    items:[
    {
    xtype:'carousel',
    items:[{ur screen here}]
    }
    ]
    }
    ]

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

    Default

    If you have a docked item as an item of the carousel it will be docked, so you don't need to nest it in another container

    Code:
    {
        xtype : 'carousel',
        items : [
            {
                xtype : 'titlebar',
                docked : 'top',
                title : 'Title'
            },
            //more items here
        ]
    }
    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.

  5. #4
    Sencha User
    Join Date
    May 2012
    Posts
    15
    Vote Rating
    0
      0  

    Default

    Thanks for the help everyone. I tried the method mentioned, but it keeps the title in the titlebar in place. I would like it to move left and right like the main carousel item below it. Something like a carousel titlebar locked to another main carousel below it. I would also like to be able to swipe the titlebar left and right and be able to move the main data in the carousel below it left and right.

    Is this possible?

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

    Default

    For that then you need to have a titlebar for 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.

  7. #6
    Sencha User
    Join Date
    May 2012
    Posts
    15
    Vote Rating
    0
      0  

    Default

    Thanks, that worked.

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
  •