View Full Version : Adapting Carousel tutorial

24 Jan 2012, 6:47 AM
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:

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!!

24 Jan 2012, 10:05 AM
You should listen for the cardswitch event on the Carousel to then do the appropriate action to you buttons.