7 Roo.bootstrap.dash = Roo.bootstrap.dash || {};
10 * @class Roo.bootstrap.dash.NumberBox
11 * @extends Roo.bootstrap.Component
12 * Bootstrap NumberBox class
13 * @cfg {String} headline Box headline
14 * @cfg {String} content Box content
15 * @cfg {String} icon Box icon
16 * @cfg {String} footer Footer text
17 * @cfg {String} fhref Footer href
20 * Create a new NumberBox
21 * @param {Object} config The config object
25 Roo.bootstrap.dash.NumberBox = function(config){
26 Roo.bootstrap.dash.NumberBox.superclass.constructor.call(this, config);
30 Roo.extend(Roo.bootstrap.dash.NumberBox, Roo.bootstrap.Component, {
39 getAutoCreate : function(){
71 cls : 'ion ' + this.icon
80 cls : 'small-box-footer',
81 href : this.fhref || '#',
92 onRender : function(ct,position){
93 Roo.bootstrap.dash.NumberBox.superclass.onRender.call(this,ct,position);
100 setHeadline: function (value)
102 this.el.select('.roo-headline',true).first().dom.innerHTML = value;
105 setFooter: function (value, href)
107 this.el.select('a.small-box-footer',true).first().dom.innerHTML = value;
110 this.el.select('a.small-box-footer',true).first().attr('href', href);
115 setContent: function (value)
117 this.el.select('.roo-content',true).first().dom.innerHTML = value;
120 initEvents: function()