From 381270ed0a6c1fff261830b718377626778d3e38 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 21 Jun 2018 10:25:15 +0800 Subject: [PATCH] sync --- Roo/doc/Book.js | 73 ++++++++++++++++++ examples/bootstrap/nested_dialog.html | 104 ++++++++++++++++++++++++++ 2 files changed, 177 insertions(+) create mode 100644 Roo/doc/Book.js create mode 100644 examples/bootstrap/nested_dialog.html diff --git a/Roo/doc/Book.js b/Roo/doc/Book.js new file mode 100644 index 0000000000..73b93f7c97 --- /dev/null +++ b/Roo/doc/Book.js @@ -0,0 +1,73 @@ +/* + * - LGPL + * + */ + +/** + * @class Roo.doc.Book + * @extends Roo.bootstrap.Component + * Book Element class - Represents the outer book + * @cfg {String} title Title of the book + * @cfg {String} abstract Abstract (or just add para's to the book, and it will get added to the abstract) + * + * + * @constructor + * Create a new Book + * @param {Object} config The config object + */ + +Roo.doc.Book = function(config){ + Roo.doc.Book.superclass.constructor.call(this, config); +}; + +Roo.extend(Roo.doc.Book, Roo.bootstrap.Component, { + + title : '', + abstract : '', + getAutoCreate : function(){ + + //?? this is the synopsis type.... + + // this is not very fancy... + + var cfg ={ + cls: 'book', + cn : [ + { + cls : 'info', + cn: [ + { + tag: 'h1', + html : this.title + } + ] + } + ] + }; + + if (this.abstract.length) { + cfg.cn[0].cn.push({ + cls : 'abstract', + cn : { + tag : 'p', + cls : 'para', + html : String.format('{0}', this.abstract) + } + + }); + + } + + return cfg; + } + + + + + + +}); + + + + \ No newline at end of file diff --git a/examples/bootstrap/nested_dialog.html b/examples/bootstrap/nested_dialog.html new file mode 100644 index 0000000000..6fe86ad34c --- /dev/null +++ b/examples/bootstrap/nested_dialog.html @@ -0,0 +1,104 @@ + + + + Nested Layout + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- 2.39.2