Results 1 to 2 of 2

Thread: Adapting Carousel tutorial

  1. #1
    Sencha User
    Join Date
    Jan 2011
    Posts
    7
    Vote Rating
    0
      0  

    Default Adapting Carousel tutorial

    I'm using the Introduction to carousels tutorial, but want to adapt it to my needs. The thing I'd like to do differently is to have the toolbar with back and info button in the main panel so that it stays constant and the carousel moves beneath, rather than having a different toolbar per panel.

    I've removed the toolbar from PaintingCard.js, and inserted the following into Viewport.js:
    Code:
            Ext.apply(this, {
    
    
            dockedItems: [{
            xtype: 'toolbar',
            title: 'Constant Name'
        }],
    However I can't figure out how to put the back and info buttons into the toolbar, let alone activate them!!

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,357
    Vote Rating
    1501
      0  

    Default

    You should listen for the cardswitch event on the Carousel to then do the appropriate action to you buttons.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

Posting Permissions

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