Chapter 8. Working with forms
This chapter covers
- Building simple and complex forms
- Loading and saving forms
- Binding a form to a list
So far in this book we’ve covered many ways to manage data and display it onscreen using Sencha Touch’s various UI widgets, ranging from tabs, to generic components, to XTemplates. Though this information is important for most applications, we’re sure your users are just as demanding as ours and want to interact with the data—and maybe even save it!
Interacting with the data is done using Form panels and form fields. In this chapter you’ll examine the various form elements, their uses, and how to put them together in a form that can be loaded and saved. After that you’ll explore ways to use forms in conjunction with other components, like the list sample from chapter 5. So what are you waiting for? Let’s get started.
It should come as no surprise that developing and designing forms represents one of the common tasks in every app developer’s life, and as such, we developers are a demanding bunch. A way to load the form? You bet. A way to save it? Of course. Validation? An absolute must!