diff options
author | Armen Kesablyan | 2012-06-20 15:04:25 -0700 |
---|---|---|
committer | Armen Kesablyan | 2012-06-20 15:04:25 -0700 |
commit | fc818d31de267d2b77fda3b3029ad38d48698be8 (patch) | |
tree | 122ebf54d3378578c1ded4d786ba3940d4a911d2 /node_modules/montage/ui/native/progress.reel/progress.js | |
parent | 120e31dcf1e11eed11ee430d77c438e7b073e9f8 (diff) | |
parent | c9852665eadc1acb9c1c881d207c4bd9ef88805f (diff) | |
download | ninja-fc818d31de267d2b77fda3b3029ad38d48698be8.tar.gz |
Merge branch 'master' of github.com:Motorola-Mobility/ninja-internal
Diffstat (limited to 'node_modules/montage/ui/native/progress.reel/progress.js')
-rw-r--r-- | node_modules/montage/ui/native/progress.reel/progress.js | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/node_modules/montage/ui/native/progress.reel/progress.js b/node_modules/montage/ui/native/progress.reel/progress.js new file mode 100644 index 00000000..4cf9e5c3 --- /dev/null +++ b/node_modules/montage/ui/native/progress.reel/progress.js | |||
@@ -0,0 +1,49 @@ | |||
1 | /* <copyright> | ||
2 | This file contains proprietary software owned by Motorola Mobility, Inc.<br/> | ||
3 | No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/> | ||
4 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. | ||
5 | </copyright> */ | ||
6 | |||
7 | /** | ||
8 | @module "montage/ui/progress.reel" | ||
9 | @requires montage/ui/commponent | ||
10 | @requires montage/ui/native-control | ||
11 | */ | ||
12 | |||
13 | var Montage = require("montage").Montage, | ||
14 | Component = require("ui/component").Component, | ||
15 | NativeControl = require("ui/native-control").NativeControl; | ||
16 | |||
17 | /** | ||
18 | The Progress component wraps a native <code><progress></code> element and exposes its standard attributes as bindable properties. | ||
19 | @class module:"montage/ui/progress.reel".Progress | ||
20 | @extends module:montage/ui/native-control.NativeControl | ||
21 | |||
22 | */ | ||
23 | var Progress = exports.Progress = Montage.create(NativeControl, { | ||
24 | |||
25 | }); | ||
26 | |||
27 | Progress.addAttributes( /** @lends module:"montage/ui/progress.reel".Progress# */{ | ||
28 | |||
29 | /** | ||
30 | The value of the id attribute of the form with which to associate the component's element. | ||
31 | @type string} | ||
32 | @default null | ||
33 | */ | ||
34 | form: null, | ||
35 | |||
36 | /** | ||
37 | The maximum value displayed but the progress control. | ||
38 | @type {number} | ||
39 | @default null | ||
40 | */ | ||
41 | max: {dataType: 'number'}, | ||
42 | |||
43 | /** | ||
44 | The current value displayed but the progress control. | ||
45 | @type {number} | ||
46 | @default null | ||
47 | */ | ||
48 | value: {dataType: 'number'} | ||
49 | }); \ No newline at end of file | ||