Book Image

Mastering Ext JS

By : Loiane Groner
Book Image

Mastering Ext JS

By: Loiane Groner

Overview of this book

<p>Ext JS 4 is a JavaScript framework that provides you with the resources to build multi-browser, high-performance, and rich Internet applications.<br /><br />Mastering Ext JS is a practical, hands-on guide that will teach you how to develop a complete application with Ext JS. You’ll begin by learning how to create the project’s structure and login screen before mastering advanced level features such as dynamic menus and master-detail grids, before finally preparing the application for production.<br /><br />Mastering Ext JS will help you to utilize Ext JS to its full potential and will show you how to create a complete Ext JS application from the scratch, as well as explaining how to create a Wordpress theme.</p> <p><br />You will learn how to create user and group security, master-detail grids and forms, charts, trees, and how to export data to excel including PDF and images, always focusing on best practices.</p> <p><br />You will also learn how to customize themes and how to prepare the application to be ready for deployment upon completion. Each chapter of the book is focused on one task and helps you understand and master an individual aspect of the application.</p> <p><br />By the end of the book, you will have learned everything you need to know to truly master Ext JS and to start building advanced applications.</p>
Table of Contents (20 chapters)
Mastering Ext JS
Credits
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface
Index

Listing all the users – simple Grid panel


We need to implement a screen similar to the first screenshot we showed in this chapter. It is a simple Grid panel. So to implement a simple Grid panel we need the following:

  • A model to represent the information that is stored in the user table

  • A store with a proxy to read the information from the server

  • A Grid panel component representing the view

  • And as we want to load the user information only after the Grid panel is rendered we will also need a controller to listen to this event

User model

So the first step is to create a model to represent the User table. We are going to create a new file named User.js under the app/model/security directory. This model is going to represent all the fields from the User table, except the password field, because as the password is something very personal of the user, we cannot display the user's password to any other user, including the administrator. So the user model is going to look like the following:

Ext.define...