How to create model in ext js.

Total Post:23

Points:161
 988  View(s)
Ratings:
Rate this:
Hi Guys 

Please tell me how to create model in ext js.

Thanks
  1. Post:281

    Points:2003
    Re: How to create model in ext js.

    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.

Answer