Skip to content

Instantly share code, notes, and snippets.

@feedhenry-gists
Created June 14, 2011 11:36
Show Gist options
  • Save feedhenry-gists/1024734 to your computer and use it in GitHub Desktop.
Save feedhenry-gists/1024734 to your computer and use it in GitHub Desktop.
Tutorial Sencha Touch Notify Menu
// 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