Below is an example of how to get a formPanel to work inside of an Ext.Window really easily. Simply call the class’s .show() method with a json object or an instance of a Ext.Data.Record object and it will do the rest. I realize that this should have probably been done in a ‘module’ or ‘singleton’ pattern but I wanted to exercise my use of classes and Ext.extend, etc. In fact, the class could have been blown out more to accept any instance of a form, etc, but I started to get crunched on time.

Click here to view the example
formWindowExample illustrated

Click here to download the file formWindow.zip.

Example Code

Class

Like what you've seen or read? Use the below links to share and enjoy.
  • Twitter
  • Digg
  • del.icio.us
  • Technorati
  • Yahoo! Buzz
  • Facebook
  • LinkedIn
  • Mixx
  • Google Bookmarks
  • Tumblr
  • Blogplay
  • Add to favorites
  • DZone
  • FriendFeed
  • Live
  • PDF
  • Propeller
  • Reddit
  • Suggest to Techmeme via Twitter
  • Slashdot
  • StumbleUpon
  • email
  • Print
  • Sphinn