+1 vote
in JavaScript by
How to create an object in EXT JS?

1 Answer

0 votes
by

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()

  1. Ext.create('Ext.Panel', {  
  2. renderTo : 'HelloExt JSPanel',  
  3. height : 50,  
  4. width : 50,  
  5. title : 'Hello Ext JS',  
  6. html : 'Welcome to the world of Ext JS'  
  7. });  

Creating object with the help of new keyword

  1. var employeeObject =new employee ();  
  2. employeeObject.getEmployeeName ();   

Related questions

+1 vote
+1 vote
asked Jul 16, 2019 in JavaScript by Indian
+1 vote
0 votes
0 votes
asked Aug 16, 2020 in JavaScript by RShastri
+2 votes
asked Jul 16, 2019 in JavaScript by Indian
...