7 Roo.bootstrap.dash = Roo.bootstrap.dash || {};
10 * @class Roo.bootstrap.dash.TabBox
11 * @extends Roo.bootstrap.Component
12 * Bootstrap TabBox class
16 * @param {Object} config The config object
20 Roo.bootstrap.dash.TabBox = function(config){
21 Roo.bootstrap.dash.TabBox.superclass.constructor.call(this, config);
27 * The img click event for the img.
28 * @param {Roo.EventObject} e
34 Roo.extend(Roo.bootstrap.dash.TabBox, Roo.bootstrap.Component, {
36 getAutoCreate : function(){
40 cls: 'nav-tabs-custom',
44 cls: 'nav nav-tabs pull-right',
52 // data-toggle: 'tab',
53 html: this.tab1_text ? this.tab1_text : 'tab1'
63 // data-toggle: 'tab',
64 html: this.tab2_text ? this.tab2_text : 'tab2'
69 cls: 'pull-left header',
70 html: this.title ? this.title : 'Title',
82 initEvents: function() {
85 // this.el.on('click', this.onClick, this);
88 Roo.each(_this.el.select('li',true).elements, function(el){
90 el.on('click', _this.onClick, el);
96 Roo.log('img onclick');
98 this.findParent('ul',false, true).select('li.active').removeClass('active');
99 this.addClass('active');
101 //this.el.select('li.active',true).first().removeClass('active');
103 // Roo.get(e.target).findParent('li',false, true).addClass('active');
105 //this.fireEvent('toggle', this, e);