Created
October 3, 2012 22:09
-
-
Save altintx/3830209 to your computer and use it in GitHub Desktop.
In a Sencha Touch navigation view, have you ever wanted different buttons in the titlebar portion of individual cards? With the activeitemchange listener down below, each card can declare their own navbar buttons (or even other types of widgets) and they'll be automatically appear when that particular card is active.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ext.define("App.view.default.Card", { | |
extend: "Ext.List", | |
alias: "widget.defaultcard", | |
navigationBarItems: [ | |
{ | |
text: "Add", | |
align: "right", | |
eventName: "add" | |
} | |
] | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was getting an error with your example on the back action. Was saying last() is undefined. I got it to work with