It is easy to create the object in Ext JS like in the other object-oriented programming language (OOPs). You can create the object in Ext JS by using two following ways:
Creating an object with the help of Ext.create()
- Ext.create('Ext.Panel', {
- renderTo : 'HelloExt JSPanel',
- height : 50,
- width : 50,
- title : 'Hello Ext JS',
- html : 'Welcome to the world of Ext JS'
- });
Creating object with the help of new keyword
- var employeeObject =new employee ();
- employeeObject.getEmployeeName ();