O'Reilly logo

Sencha Touch 2 Mobile JavaScript Framework by Bryan P. Johnson, John Earl Clark

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The MessageBox and Sheet components

At some point, your application will probably need to give feedback to the user, ask the user a question, or alert the user to an event. This is where the MessageBox and Sheet components come into play.

Creating a MessageBox component

The MessageBox component creates a window on the page, and can be used to display alerts, gather information, or present options to the user. MessageBox can be called in three different ways:

  • Ext.Msg.alert takes a title, some message text, and an optional callback function to call when the OK button on the alert is clicked.
  • Ext.Msg.prompt takes a title, some message text, and a callback function to call when the OK button is pressed. The prompt command creates a text field and adds ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required