From 24b483db367291b72170f969de78efcb1a9b95bd Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Thu, 3 May 2012 22:53:07 -0700 Subject: integrating the latest montage version Signed-off-by: Valerio Virgillito --- node_modules/montage/ui/image.reel/image.js | 36 +++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) (limited to 'node_modules/montage/ui/image.reel') diff --git a/node_modules/montage/ui/image.reel/image.js b/node_modules/montage/ui/image.reel/image.js index 5deebbf6..149f650b 100755 --- a/node_modules/montage/ui/image.reel/image.js +++ b/node_modules/montage/ui/image.reel/image.js @@ -3,20 +3,52 @@ 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; /** - * The native control with binding support for the standard attributes + * Wraps the a <img> element with binding support for its standard attributes. + @class module:"montage/ui/image.reel".Image + @extends module:montage/native-control.NativeControl */ var Image = exports.Image = Montage.create(NativeControl, { }); -Image.addAttributes({ +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