X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/3789b528d8dd8aad4558e38e22d775bcab1cbd36..refs/heads/master:/docs/source/Template.html diff --git a/docs/source/Template.html b/docs/source/Template.html index 58271001..a7046ea3 100644 --- a/docs/source/Template.html +++ b/docs/source/Template.html @@ -3,8 +3,8 @@ The source code - - + + @@ -16,25 +16,21 @@
/**
- * @class Ext.grid.column.Template
- * @extends Ext.grid.column.Column
+ * A Column definition class which renders a value by processing a {@link Ext.data.Model Model}'s
+ * {@link Ext.data.Model#persistenceProperty data} using a {@link #tpl configured}
+ * {@link Ext.XTemplate XTemplate}.
  * 
- * A Column definition class which renders a value by processing a {@link Ext.data.Model Model}'s
- * {@link Ext.data.Model#data data} using a {@link #tpl configured} {@link Ext.XTemplate XTemplate}.
- * 
- *  {@img Ext.grid.column.Template/Ext.grid.column.Template.png Ext.grid.column.Template grid column}
- * 
- * ## Code
+ *     @example
  *     Ext.create('Ext.data.Store', {
  *         storeId:'employeeStore',
  *         fields:['firstname', 'lastname', 'senority', 'department'],
  *         groupField: 'department',
  *         data:[
- *             {firstname:"Michael", lastname:"Scott", senority:7, department:"Manangement"},
- *             {firstname:"Dwight", lastname:"Schrute", senority:2, department:"Sales"},
- *             {firstname:"Jim", lastname:"Halpert", senority:3, department:"Sales"},
- *             {firstname:"Kevin", lastname:"Malone", senority:4, department:"Accounting"},
- *             {firstname:"Angela", lastname:"Martin", senority:5, department:"Accounting"}                        
+ *             { firstname: "Michael", lastname: "Scott",   senority: 7, department: "Manangement" },
+ *             { firstname: "Dwight",  lastname: "Schrute", senority: 2, department: "Sales" },
+ *             { firstname: "Jim",     lastname: "Halpert", senority: 3, department: "Sales" },
+ *             { firstname: "Kevin",   lastname: "Malone",  senority: 4, department: "Accounting" },
+ *             { firstname: "Angela",  lastname: "Martin",  senority: 5, department: "Accounting" }                        
  *         ]
  *     });
  *     
@@ -42,16 +38,13 @@
  *         title: 'Column Template Demo',
  *         store: Ext.data.StoreManager.lookup('employeeStore'),
  *         columns: [
- *             {text: 'Full Name',  xtype:'templatecolumn', tpl:'{firstname} {lastname}', flex:1},
- *             {text: 'Deparment (Yrs)', xtype:'templatecolumn', tpl:'{department} ({senority})'}
+ *             { text: 'Full Name',       xtype: 'templatecolumn', tpl: '{firstname} {lastname}', flex:1 },
+ *             { text: 'Deparment (Yrs)', xtype: 'templatecolumn', tpl: '{department} ({senority})' }
  *         ],
  *         height: 200,
  *         width: 300,
  *         renderTo: Ext.getBody()
  *     });
- * 
- * @markdown
- * @xtype templatecolumn
  */
 Ext.define('Ext.grid.column.Template', {
     extend: 'Ext.grid.column.Column',
@@ -60,10 +53,12 @@ Ext.define('Ext.grid.column.Template', {
     alternateClassName: 'Ext.grid.TemplateColumn',
 
     /**
-     * @cfg {String/XTemplate} tpl
-     * An {@link Ext.XTemplate XTemplate}, or an XTemplate <i>definition string</i> to use to process a
-     * {@link Ext.data.Model Model}'s {@link Ext.data.Model#data data} to produce a column's rendered value.
+     * @cfg {String/Ext.XTemplate} tpl
+     * An {@link Ext.XTemplate XTemplate}, or an XTemplate *definition string* to use to process a
+     * {@link Ext.data.Model Model}'s {@link Ext.data.Model#persistenceProperty data} to produce a
+     * column's rendered value.
      */
+
     constructor: function(cfg){
         var me = this,
             tpl;