Here's the final component we've been constructing. At this point in time, we don't really need the custom update event. We'll leave it in, as it may be useful later, and we'll just remove the onUpdate()
method for now.
Example 2:ContactDetails.js
Ext.namespace('CRM.panels'); CRM.panels.ContactDetails = Ext.extend(Ext.Panel,{ width: 350, height: 250, data: { ID: 0, FIRSTNAME: '', LASTNAME: '', EMAIL: '', ADDRESSTYPE: 'Home (mailing)', STREET1: '', STREET2: '', STREET3: '', CITY: '', STATE: '', ZIP: '', PHONETYPE: 'Home', PHONE: '' }, tpl: new Ext.XTemplate([ '<img src="/resources/images/s.gif" width="21" height="16" /><b>{FIRSTNAME} {LASTNAME}</b><br />', '<img src="/resources/images/icons/silk/database_edit.gif" width...