From da84fb3790307c7bf2c33027878c2625681e965a Mon Sep 17 00:00:00 2001 From: Edward Date: Thu, 10 Apr 2014 15:53:58 +0800 Subject: [PATCH] Roo/bootstrap/Progress.js --- Roo/bootstrap/Progress.js | 46 ++++++++++++++++++++++++++++++++++++--- 1 file changed, 43 insertions(+), 3 deletions(-) diff --git a/Roo/bootstrap/Progress.js b/Roo/bootstrap/Progress.js index 3089378655..4b792c1c80 100644 --- a/Roo/bootstrap/Progress.js +++ b/Roo/bootstrap/Progress.js @@ -1,6 +1,46 @@ -/* - * To change this template, choose Tools | Templates - * and open the template in the editor. +/* + * - LGPL + * + * Progress + * */ +/** + * @class Roo.bootstrap.Progress + * @extends Roo.bootstrap.Component + * Bootstrap Progress class + * @cfg {String} size xs | sm | md | lg + + * @cfg {Number} aria_valuenow aria-value now + * + * @constructor + * Create a new Progress + * @param {Object} config The config object + */ + +Roo.bootstrap.Progress = function(config){ + Roo.bootstrap.Progress.superclass.constructor.call(this, config); +}; + +Roo.extend(Roo.bootstrap.Progress, Roo.bootstrap.Component, { + + aria_valuenow : false, + + getAutoCreate : function(){ + var cfg = { + tag: 'div', + cls: 'progress-bar' + }; + + if(this.aria_valuenow){ + cfg['aria-valuenow'] = this.aria_valuenow; + } + + return cfg; + } + +}); + + + \ No newline at end of file -- 2.39.2