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/image.reel | |
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/image.reel')
-rw-r--r-- | node_modules/montage/ui/native/image.reel/image.js | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/node_modules/montage/ui/native/image.reel/image.js b/node_modules/montage/ui/native/image.reel/image.js new file mode 100644 index 00000000..9b0aac11 --- /dev/null +++ b/node_modules/montage/ui/native/image.reel/image.js | |||
@@ -0,0 +1,54 @@ | |||
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/image.reel" | ||
9 | @requires montage/ui/component | ||
10 | @requires montage/ui/native-control | ||
11 | */ | ||
12 | var Montage = require("montage").Montage, | ||
13 | Component = require("ui/component").Component, | ||
14 | NativeControl = require("ui/native-control").NativeControl; | ||
15 | |||
16 | /** | ||
17 | * Wraps the a <img> element with binding support for its standard attributes. | ||
18 | @class module:"montage/ui/image.reel".Image | ||
19 | @extends module:montage/ui/native-control.NativeControl | ||
20 | */ | ||
21 | var Image = exports.Image = Montage.create(NativeControl, { | ||
22 | |||
23 | }); | ||
24 | |||
25 | Image.addAttributes(/** @lends module:"montage/ui/image.reel".Image */{ | ||
26 | |||
27 | /** | ||
28 | A text description to display in place of the image. | ||
29 | @type {string} | ||
30 | @default null | ||
31 | */ | ||
32 | alt: null, | ||
33 | |||
34 | /** | ||
35 | The height of the image in CSS pixels. | ||
36 | @type {number} | ||
37 | @default null | ||
38 | */ | ||
39 | height: null, | ||
40 | |||
41 | /** | ||
42 | The URL where the image is located. | ||
43 | @type {string} | ||
44 | @default null | ||
45 | */ | ||
46 | src: null, | ||
47 | |||
48 | /** | ||
49 | The width of the image in CSS pixels. | ||
50 | @type {number} | ||
51 | @default null | ||
52 | */ | ||
53 | width: null | ||
54 | }); | ||