Home > DeveloperSection > Forums > How to create model in ext js.
zack mathews
zack mathews

Total Post:23

Points:161
Posted on    October-05-2016 5:33 AM

 sencha extjs Sencha Touch 
Ratings:


 1 Reply(s)
 301  View(s)
Rate this:
Hi Guys 

Please tell me how to create model in ext js.

Thanks


aditya kumar Patel

Total Post:250

Points:1782
Posted on    October-05-2016 5:53 AM

Model is a set of property and datatype and support for validation each property.
Ext.define('MyApp.model.User', {
    extend: 'Ext.data.Model',  
    fields: ['UserId', 'UserName', 'UserEmail', 'PhoneNumber', 'Address', 'Password'],
     
});
Thanks.

Don't want to miss updates? Please click the below button!

Follow MindStick