View Full Version : confused on Ext.application w/ Ext.define vs Ext.create

27 Apr 2012, 12:33 PM
Sometimes, spending 10 minutes writing out the problem leads to your own solution.. /sigh. Figured it out within 2 minutes of posting this. My last paragraph is still valid though.

<removing original question>
A supplemental question; is there a better way to debug extJS? I currently have WebStorm with the ext library loaded, but it does little more than syntax check. I've been having a very hard time understanding why things are broken... so many completely blank pages! Muddling through, but there's got to be a better way.


27 Apr 2012, 2:28 PM
What browser do you prefer to develop in?

For firefox, get firebug: http://getfirebug.com/
For Chrome/Safari, Use Developer Tools (built-in);
For IE .. well .. they have a developer tools .. but ... ;)


29 Apr 2012, 7:59 PM
Ext.define() -- It creates custom class by extending ExtJS class.
Ext.define("employeemodel", {
extend : 'Ext.data.Model',
fields : [ {
name : "id",
type : "number"


Ext.create() - It creates instance of ExtJS class.

Ext.create('Ext.grid.Panel', {
title : 'Simpsons',
store : employeestore,