Created
June 14, 2011 11:36
-
-
Save feedhenry-gists/1024734 to your computer and use it in GitHub Desktop.
Tutorial Sencha Touch Notify Menu
This file contains 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
// Define the 5th item in the menu | |
menu[5] = { | |
title: 'Notify', // Title as it should appear in Menu | |
// Array of items that should be in the Notify menu item | |
items: [{ | |
ui_type: 'Ext.Button', // Simple button | |
text: 'Vibrate', // Button text | |
ui: 'action', // UI Type | |
margin: 5, | |
handler: 'notify.vibrate' // Controller endpoint to callback to | |
}, { | |
ui_type: 'Ext.Button', | |
text: 'Beep (Android Only)', | |
margin: 5, | |
ui: 'action', | |
handler: 'notify.beep' | |
}] | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment