this.tpl.compile();
- /**
- * The template used by this View
- * @type {Roo.DomHelper.Template}
- */
- //this.tpl = tpl;
-
- Roo.apply(this, config);
+
+
/** @private */
this.addEvents({
/**
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.