Hybrid View

  1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    15
    Vote Rating
    0
    revilo78 is on a distinguished road

      0  

    Default Answered: Carousel Title Bar

    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
    shaleen is on a distinguished road

      0  

    Default


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

  4. #3
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,330
    Answers
    3541
    Vote Rating
    847
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      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 @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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
    revilo78 is on a distinguished road

      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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,330
    Answers
    3541
    Vote Rating
    847
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    For that then you need to have a titlebar for each item.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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
    revilo78 is on a distinguished road

      0  

    Default


    Thanks, that worked.

Thread Participants: 2

Tags for this Thread