Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Mastering ExtJS - Second Edition
  • Table Of Contents Toc
Mastering ExtJS - Second Edition

Mastering ExtJS - Second Edition - Second Edition

By : Loiane Avancini
4 (3)
close
close
Mastering ExtJS - Second Edition

Mastering ExtJS - Second Edition

4 (3)
By: Loiane Avancini

Overview of this book

If you are a developer who is familiar with Ext JS and want to augment your skills to create even better web applications, this is the book for you. Basic knowledge of JavaScript/HTML/CSS and any server-side language (PHP, Java, C#, Ruby, or Python) is required.
Table of Contents (13 chapters)
close
close
12
Index

The Films ViewController


In past chapters, we have already covered some examples of how to save data. We used the form submit, an Ajax request, and also the writing resource from the Store. In this chapter, let's focus on functionalities we have not implemented yet. Do not worry. The complete implementation is available within the source code distributed with this book.

The createDialog method

We created all the views for our application. In the base ViewController, we created the handlers for the Add and Edit buttons, and both call the createDialog method, which we are going to develop now.

The idea is to display a blank Edit window in case the user clicks on the Add button, and to display the selected film in case the user clicks on the Edit button. The source code for this method is as follows:

createDialog: function(record){

    var me = this,
        view = me.getView(),        //#1
        glyphs = Packt.util.Glyphs;

    me.isEdit = !!record;           //#2
    me.dialog = view.add(...
Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Mastering ExtJS - Second Edition
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon