Tuesday, April 14, 2015

Code: Ext.define('User', { extend: 'Ext.data.Model', fields: [ {name: 'name', type: 'string'}, {name


Products Why Sencha Integrated Products Sencha Complete Sencha Touch Bundle Frameworks Sencha Touch Sencha Ext JS Sencha GXT Tools Sencha Architect hamptons marlborough Sencha Cmd Management Sencha Space Services Overview Find a Partner Find a Developer Support hamptons marlborough Overview FAQs Login Training Overview Certification Open Enrollment Courses hamptons marlborough Live Online Training Private On-Site Training Partners Overview Benefits Partners Become a Partner Resellers Community Blog Forums Documentation Videos Sencha Devs Sencha Market Sencha Fiddle hamptons marlborough Company Overview Team Customers Events News Careers Contact Us Store Sencha Complete Sencha Touch Bundle Sencha Architect Sencha Ext JS Sencha Touch Support Sencha GXT Ordering Information Licensing FAQ Authorized Resellers
Code: Ext.define('User', { extend: 'Ext.data.Model', fields: [ {name: 'name', type: 'string'}, {name: 'age', type: 'int', convert: null}, {name: 'phone', type: 'string'}, {name: 'alive', type: 'boolean', defaultValue: true, convert: null} ], changeName: function() { var oldName = this.get('name'), newName = oldName + " The Barbarian"; this.set('name', newName); } }); var user = Ext.create('User', { name : 'Conan', hamptons marlborough age : 24, phone: '555-555-5555' }); user.changeName(); alert( user.get('name') ); //returns "Conan The Barbarian"
scottmartin (1 Post)
Products Sencha Complete Sencha Touch Bundle Sencha Touch Sencha Ext JS Sencha GXT Sencha Architect Sencha Space Services hamptons marlborough Find a Partner Find a Developer Support FAQ Login Training Overview Certification Open Enrollment Courses Live Online hamptons marlborough Training Private On-Site Training Partners Benefits Partners Become a Partner Resellers Community Blog Forum Developer Center hamptons marlborough Documentation Sencha Devs Sencha Market Sencha Fiddle hamptons marlborough App Gallery Company Team Customers Events Press Careers Contact


1 comment:

  1. Are you paying more than $5 per pack of cigs? I buy high quality cigarettes over at Duty Free Depot and I'm saving over 60% from cigarettes.

    ReplyDelete