From 8fe92b94ce5e1e2857d088752d94e19db7e3d8a8 Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Sun, 17 Jun 2012 22:31:44 -0700 Subject: montage v11 merge into ninja Signed-off-by: Valerio Virgillito --- node_modules/montage/ui/native/image.reel/image.js | 54 ++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 node_modules/montage/ui/native/image.reel/image.js (limited to 'node_modules/montage/ui/native/image.reel/image.js') 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 @@ +/* + This file contains proprietary software owned by Motorola Mobility, Inc.
+ No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.
+ (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. +
*/ + +/** + @module "montage/ui/image.reel" + @requires montage/ui/component + @requires montage/ui/native-control +*/ +var Montage = require("montage").Montage, + Component = require("ui/component").Component, + NativeControl = require("ui/native-control").NativeControl; + +/** + * Wraps the a <img> element with binding support for its standard attributes. + @class module:"montage/ui/image.reel".Image + @extends module:montage/ui/native-control.NativeControl + */ +var Image = exports.Image = Montage.create(NativeControl, { + +}); + +Image.addAttributes(/** @lends module:"montage/ui/image.reel".Image */{ + +/** + A text description to display in place of the image. + @type {string} + @default null +*/ + alt: null, + +/** + The height of the image in CSS pixels. + @type {number} + @default null +*/ + height: null, + +/** + The URL where the image is located. + @type {string} + @default null +*/ + src: null, + +/** + The width of the image in CSS pixels. + @type {number} + @default null +*/ + width: null +}); -- cgit v1.2.3