Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    4
    Vote Rating
    0
    rockstar79 is on a distinguished road

      0  

    Default Unanswered: 'Page' navigation on button press - is it possible?

    Unanswered: 'Page' navigation on button press - is it possible?


    Hello all,

    I'm new here and to Sencha Touch. I have spent the past few days trawling through the documentation and videos and haven't yet seen a clear description on making 'pages'/'cards' change when the user presses a button, rather than using either a tab-panel or carousel for navigation.

    I have an app I'm making with custom page navigation buttons which is why I can't use a tab-panel or carousel (or can I?). I've been able to create a button and call the 'handler' function when it is clicked/touched but does anyone know how I can make that button move another 'page'/'card' with the usual animations such as 'fade' or 'slide'? Is it even possible?

    I'd be extremely grateful if anyone could point me in the right direction. Many thanks in advance

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,519
    Answers
    3447
    Vote Rating
    814
    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


    All you need is setActiveItem on the Panel:

    Code:
    var panel = Ext.create('Ext.Panel', {
        fullscreen : true,
        layout     : 'card',
        items      : [
            {
                html : 'One'
            },
            {
                html : 'Two'
            },
            {
                html : 'Three'
            }
        ]
    });
    
    setTimeout(function() {
        panel.setActiveItem(1);
    
        setTimeout(function() {
            panel.setActiveItem(2);
    
            setTimeout(function() {
                panel.setActiveItem(0);
            }, 2000);
        }, 2000);
    }, 2000);
    http://docs.sencha.com/touch/2-0/#!/...-setActiveItem
    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.

  3. #3
    Sencha User
    Join Date
    Nov 2011
    Posts
    4
    Vote Rating
    0
    rockstar79 is on a distinguished road

      0  

    Default


    Hi mitchellsimoens, thanks very much for your response!

    I have already tried it as you suggested, using 'setActiveItem()' and this does indeed change the pages as I need. However, what I can't figure out it how to make the pages/cards change using the animations you get when utilizing either the tab panel or carousel navigation (fade, slide etc..)

    So, to clarify, instead of the page changes being instant as they are with your recommendation, is it possible to do this adding in the smooth transitional animations?

    Again, many thanks for your help

  4. #4
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,519
    Answers
    3447
    Vote Rating
    814
    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


    Being in PR stages, animations aren't fully baked into the framework.
    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. #5
    Sencha User
    Join Date
    Nov 2011
    Posts
    4
    Vote Rating
    0
    rockstar79 is on a distinguished road

      0  

    Default


    Ok, thanks for the heads-up. I'll keep an ear to the ground for something like this being added in the future.

Thread Participants: 1

Tags for this Thread