O'Reilly logo

Creating Mobile Apps with Sencha Touch 2 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

Creating the forms

Before we start creating forms we need to add a button to our MainView toolbar that will display the form for adding new tasks.

Drag a Button object out from the Toolbox list and drop it on the TaskMaster toolbar. The new button should appear next to backButton. We probably want to move that over to the other side of our title, so we need to drag a Spacer out of Toolbox and drop it between our new button and backButton. Spacer will push the new button to the right side of the screen.

Next we need to change the following Config properties for the new button:

  • Set text to Add
  • Set itemId to addButton

We will come back and add a tap function once we complete our forms.

Add Task form

To create our Add Task form we will add a new form panel ...

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