PDA

View Full Version : Outsource a form



Stephan123
8 Dec 2011, 12:49 AM
Hello!

I have an application that consists of different modules.
Into two components, a form is displayed. This form is in two
Cases the same.
Is there a way to outsource this form in an external file?
I need a simple example.

Sincerely

Stephan

tobiu
8 Dec 2011, 1:36 AM
use ext.extend to create a custom class based on formPanel.
this class can easily be saved in a separate file and get instanciated in both of your apps.

take a look at the ext js 4 mvc / architecture guides as well.