7 * @class Roo.doc.Example
8 * @extends Roo.bootstrap.Component
9 * Example Element class
10 * @cfg {String} title short title describing example
11 * @cfg {String} lang (phpcode|programlisting) section type.
12 * @cfg {String} code example code
13 * @cfg {String} output The expected output from the code
17 * Create a new Synopsis
18 * @param {Object} config The config object
21 Roo.doc.Example = function(config){
22 Roo.doc.Example.superclass.constructor.call(this, config);
25 Roo.extend(Roo.doc.Example, Roo.bootstrap.Component, {
32 getAutoCreate : function(){
34 // no colour highlighting in here....
37 cls : 'panel panel-info',
40 cls : 'panel-heading',
49 html : String.format('{0}',this.code).replace(/\n/g, '<br/>')
63 html : String.format('{0}',this.output).replace(/\n/g, '<br/>')