* @extends Roo.bootstrap.Component
* Example Element class
* @cfg {String} lang (phpcode|programlisting) section type.
- * @cfg {String} code
+ * @cfg {String} code example code
+ * @cfg {String} output The expected output from the code
*
*
* @constructor
lang: 'php',
code : '',
+ output : '',
getAutoCreate : function(){
cn : [
{
- tag: 'code',
+ tag: 'pre',
html : String.format('{0}',this.code).replace(/\n/g, '<br/>')
}
]
};
+ if (this.output) {
+
+ }
+
return cfg;