Roo/Template.js
[roojs1] / Roo / View.js
index 50725fc..375efce 100644 (file)
@@ -67,14 +67,9 @@ Roo.View = function(config, depreciated_tpl, depreciated_config){
     
     
     this.tpl.compile();
-    /**
-     * The template used by this View
-     * @type {Roo.DomHelper.Template}
-     */
-    //this.tpl = tpl;
-
-    Roo.apply(this, config);
+   
 
+     
     /** @private */
     this.addEvents({
     /**
@@ -150,29 +145,28 @@ Roo.View = function(config, depreciated_tpl, depreciated_config){
 
 Roo.extend(Roo.View, Roo.util.Observable, {
     
-    /**
-     * The container element.
-     * @cfg {String|Roo.Element}
+     /**
+     * @cfg {Roo.data.Store} store Data store to load data from.
      */
-    container : '',
+    store : false,
+    
     /**
-     * The template used by this View
-     * @cfg {String|Roo.DomHelper.Template}
+     * @cfg {String|Roo.Element} el The container element.
      */
-    template : '',
+    el : '',
     
     /**
-     * The template used by this View (after contruction)
-     * @type {Roo.DomHelper.Template}
+     * @cfg {String|Roo.Template} tpl The template used by this View 
      */
-    this.tpl : false,
+    tpl : false,
     
     /**
-     * The css class to add to selected nodes
-     * @type {Roo.DomHelper.Template}
+     * @cfg {String} selectedClass The css class to add to selected nodes
      */
     selectedClass : "x-view-selected",
-    
+     /**
+     * @cfg {String} emptyText The empty text to show when nothing is loaded.
+     */
     emptyText : "",
     /**
      * Returns the element this view is bound to.