]> git.proxmox.com Git - extjs.git/blame - extjs/packages/core/src/ProgressBase.js
add extjs 6.0.1 sources
[extjs.git] / extjs / packages / core / src / ProgressBase.js
CommitLineData
6527f429
DM
1/**\r
2 * @private\r
3 */\r
4Ext.define('Ext.ProgressBase', {\r
5 mixinId: 'progressbase',\r
6\r
7 config: {\r
8 /**\r
9 * @cfg {Number} [value=0]\r
10 * A floating point value between 0 and 1 (e.g., .5)\r
11 */\r
12 value: 0,\r
13\r
14 /**\r
15 * @cfg {String/Ext.XTemplate} [textTpl]\r
16 * A template used to create this ProgressBar's background text given two values:\r
17 *\r
18 * `value ' - The raw progress value between 0 and 1\r
19 * 'percent' - The value as a percentage between 0 and 100\r
20 */\r
21 textTpl: null\r
22 },\r
23\r
24 applyTextTpl: function(textTpl) {\r
25 if (!textTpl.isTemplate) {\r
26 textTpl = new Ext.XTemplate(textTpl);\r
27 }\r
28 return textTpl;\r
29 },\r
30\r
31 applyValue: function(value) {\r
32 return value || 0;\r
33 }\r
34});\r