diff options
author | Jonathan Duran | 2012-06-20 15:04:45 -0700 |
---|---|---|
committer | Jonathan Duran | 2012-06-20 15:04:45 -0700 |
commit | c6ae80c488621d4ac189cb63309b6258115f823a (patch) | |
tree | dfa26112e1830972fcb212bbb5b17c9a901c645f /node_modules/montage/ui/text-slider.reel/text-slider.html | |
parent | 022e714cb5d10cd8575ab9907eddfb184a990b66 (diff) | |
parent | c9852665eadc1acb9c1c881d207c4bd9ef88805f (diff) | |
download | ninja-c6ae80c488621d4ac189cb63309b6258115f823a.tar.gz |
Merge branch 'refs/heads/NINJAmaster' into Timeline-merge-candidate
Diffstat (limited to 'node_modules/montage/ui/text-slider.reel/text-slider.html')
-rw-r--r-- | node_modules/montage/ui/text-slider.reel/text-slider.html | 102 |
1 files changed, 102 insertions, 0 deletions
diff --git a/node_modules/montage/ui/text-slider.reel/text-slider.html b/node_modules/montage/ui/text-slider.reel/text-slider.html new file mode 100644 index 00000000..0b7a6993 --- /dev/null +++ b/node_modules/montage/ui/text-slider.reel/text-slider.html | |||
@@ -0,0 +1,102 @@ | |||
1 | <!DOCTYPE html> | ||
2 | <!-- <copyright> | ||
3 | This file contains proprietary software owned by Motorola Mobility, Inc.<br/> | ||
4 | No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/> | ||
5 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. | ||
6 | </copyright> --> | ||
7 | <html> | ||
8 | <head> | ||
9 | <title>TextSlider</title> | ||
10 | <link rel="stylesheet" href="text-slider.css" /> | ||
11 | |||
12 | <script type="text/montage-serialization"> | ||
13 | { | ||
14 | "value": { | ||
15 | "prototype": "ui/dynamic-text.reel", | ||
16 | "properties": { | ||
17 | "element": {"#": "value"} | ||
18 | }, | ||
19 | "bindings": { | ||
20 | "value": {"<-": "@owner.convertedValue"} | ||
21 | } | ||
22 | }, | ||
23 | "units": { | ||
24 | "prototype": "ui/dynamic-text.reel", | ||
25 | "properties": { | ||
26 | "element": {"#": "units"} | ||
27 | }, | ||
28 | "bindings": { | ||
29 | "value": {"<-": "@owner.unit"} | ||
30 | } | ||
31 | }, | ||
32 | |||
33 | "translateComposer": { | ||
34 | "prototype": "ui/composer/translate-composer", | ||
35 | "properties": { | ||
36 | "component": {"@": "owner"}, | ||
37 | "hasMomentum": false, | ||
38 | "invertYAxis": true, | ||
39 | "allowFloats": true, | ||
40 | "startTranslateSpeed": 1 | ||
41 | }, | ||
42 | "bindings": { | ||
43 | "minTranslateX": {"<-": "@owner.minValue"}, | ||
44 | "minTranslateY": {"<-": "@owner.minValue"}, | ||
45 | "maxTranslateX": {"<-": "@owner.maxValue"}, | ||
46 | "maxTranslateY": {"<-": "@owner.maxValue"} | ||
47 | }, | ||
48 | "listeners": [ | ||
49 | { | ||
50 | "type": "translateStart", | ||
51 | "listener": {"@": "owner"} | ||
52 | }, | ||
53 | { | ||
54 | "type": "translate", | ||
55 | "listener": {"@": "owner"} | ||
56 | }, | ||
57 | { | ||
58 | "type": "translateEnd", | ||
59 | "listener": {"@": "owner"} | ||
60 | } | ||
61 | ] | ||
62 | }, | ||
63 | |||
64 | "pressComposer": { | ||
65 | "prototype": "ui/composer/press-composer", | ||
66 | "properties": { | ||
67 | "component": {"@": "owner"}, | ||
68 | "delegate": {"@": "owner"} | ||
69 | }, | ||
70 | "listeners": [ | ||
71 | { | ||
72 | "type": "press", | ||
73 | "listener": {"@": "owner"} | ||
74 | } | ||
75 | ] | ||
76 | }, | ||
77 | |||
78 | "numberConverter": { | ||
79 | "prototype": "core/converter/number-converter" | ||
80 | }, | ||
81 | |||
82 | "owner": { | ||
83 | "prototype": "ui/dynamic-text.reel", | ||
84 | "properties": { | ||
85 | "element": {"#": "text-slider"}, | ||
86 | |||
87 | "_inputElement": {"#": "input"}, | ||
88 | "_pressComposer": {"@": "pressComposer"}, | ||
89 | "_translateComposer": {"@": "translateComposer"} | ||
90 | } | ||
91 | } | ||
92 | } | ||
93 | </script> | ||
94 | </head> | ||
95 | <body> | ||
96 | <span data-montage-id="text-slider" class="montage-text-slider" tabindex="0"> | ||
97 | <input type="text" data-montage-id="input" class="montage-text-slider-input"/> | ||
98 | <span data-montage-id="value" class="montage-text-slider-value"></span> | ||
99 | <span data-montage-id="units" class="montage-text-slider-label"></span> | ||
100 | </span> | ||
101 | </body> | ||
102 | </html> | ||