diff options
author | Jonathan Duran | 2012-03-01 20:01:36 -0800 |
---|---|---|
committer | Jonathan Duran | 2012-03-01 20:01:36 -0800 |
commit | b8fad971d8cf82cdc182160aa72d0c8e69800f76 (patch) | |
tree | e7791aacc4b4d59127600ad3e99bbb042b6506b0 /js/panels/properties.reel/sections/custom-rows/single-row.reel/single-row.js | |
parent | 28befbc159399f70f00034f52e56a60dae0a3ba1 (diff) | |
parent | ff0a956f33df034e9a009cfcb8999e469456a4b5 (diff) | |
download | ninja-b8fad971d8cf82cdc182160aa72d0c8e69800f76.tar.gz |
Merge branch 'refs/heads/NINJAmaster' into Timeline
Diffstat (limited to 'js/panels/properties.reel/sections/custom-rows/single-row.reel/single-row.js')
-rwxr-xr-x | js/panels/properties.reel/sections/custom-rows/single-row.reel/single-row.js | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/js/panels/properties.reel/sections/custom-rows/single-row.reel/single-row.js b/js/panels/properties.reel/sections/custom-rows/single-row.reel/single-row.js new file mode 100755 index 00000000..b606d6b8 --- /dev/null +++ b/js/panels/properties.reel/sections/custom-rows/single-row.reel/single-row.js | |||
@@ -0,0 +1,50 @@ | |||
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 | var Montage = require("montage/core/core").Montage; | ||
8 | var Component = require("montage/ui/component").Component; | ||
9 | |||
10 | exports.SingleRow = Montage.create(Component, { | ||
11 | id: { | ||
12 | value: null | ||
13 | }, | ||
14 | |||
15 | label: { | ||
16 | value: null | ||
17 | }, | ||
18 | |||
19 | content: { | ||
20 | value: null | ||
21 | }, | ||
22 | |||
23 | eventDelegate: { | ||
24 | value: null | ||
25 | }, | ||
26 | |||
27 | |||
28 | handleChange: { | ||
29 | value: function(event) { | ||
30 | } | ||
31 | }, | ||
32 | |||
33 | handleChanging: { | ||
34 | value: function(event) { | ||
35 | this.eventDelegate({"type": "changing", "id": this.id, "prop": this.prop, "text": this.label, "value": this.value}); | ||
36 | } | ||
37 | }, | ||
38 | |||
39 | divider: { | ||
40 | value: false | ||
41 | }, | ||
42 | |||
43 | prepareForDraw: { | ||
44 | value: function() { | ||
45 | if (this.divider) this.element.appendChild(document.createElement("hr")); | ||
46 | if(this.label !== null) this.element.getElementsByClassName("lbl")[0].innerHTML = this.label + ":"; | ||
47 | } | ||
48 | } | ||
49 | |||
50 | }); \ No newline at end of file | ||