X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=docs%2Fsrc%2FRoo_bootstrap_dash_TabPane.js.html;fp=docs%2Fsrc%2FRoo_bootstrap_dash_TabPane.js.html;h=60780b6b10cf20a96972f24236568a13d6d887dc;hb=9ff8ded6bbbd258ecd646184ba26020874e2c085;hp=0000000000000000000000000000000000000000;hpb=2542b67d1a0768025056f2f330bfe50b64d1ad38;p=roojs1 diff --git a/docs/src/Roo_bootstrap_dash_TabPane.js.html b/docs/src/Roo_bootstrap_dash_TabPane.js.html new file mode 100644 index 0000000000..60780b6b10 --- /dev/null +++ b/docs/src/Roo_bootstrap_dash_TabPane.js.html @@ -0,0 +1,84 @@ +/home/alan/gitlive/roojs1/Roo/bootstrap/dash/TabPane.js/* + * - LGPL + * + * Tab pane + * + */ +Roo.bootstrap.dash = Roo.bootstrap.dash || {}; +/** + * @class Roo.bootstrap.TabPane + * @extends Roo.bootstrap.Component + * Bootstrap TabPane class + * @cfg {Boolean} active (false | true) Default false + * @cfg {String} title title of panel + + * + * @constructor + * Create a new TabPane + * @param {Object} config The config object + */ + +Roo.bootstrap.dash.TabPane = function(config){ + Roo.bootstrap.dash.TabPane.superclass.constructor.call(this, config); + + this.addEvents({ + // raw events + /** + * @event activate + * When a pane is activated + * @param {Roo.bootstrap.dash.TabPane} pane + */ + "activate" : true + + }); +}; + +Roo.extend(Roo.bootstrap.dash.TabPane, Roo.bootstrap.Component, { + + active : false, + title : '', + + // the tabBox that this is attached to. + tab : false, + + getAutoCreate : function() + { + var cfg = { + tag: 'div', + cls: 'tab-pane' + }; + + if(this.active){ + cfg.cls += ' active'; + } + + return cfg; + }, + initEvents : function() + { + //Roo.log('trigger add pane handler'); + this.parent().fireEvent('addpane', this) + }, + + /** + * Updates the tab title + * @param {String} html to set the title to. + */ + setTitle: function(str) + { + if (!this.tab) { + return; + } + this.title = str; + this.tab.select('a', true).first().dom.innerHTML = str; + + } + + + +}); + + + + + \ No newline at end of file