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 --- .../native/input-checkbox.reel/input-checkbox.js | 77 ++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 node_modules/montage/ui/native/input-checkbox.reel/input-checkbox.js (limited to 'node_modules/montage/ui/native/input-checkbox.reel') diff --git a/node_modules/montage/ui/native/input-checkbox.reel/input-checkbox.js b/node_modules/montage/ui/native/input-checkbox.reel/input-checkbox.js new file mode 100644 index 00000000..d097a94d --- /dev/null +++ b/node_modules/montage/ui/native/input-checkbox.reel/input-checkbox.js @@ -0,0 +1,77 @@ +/* + 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/input-checkbox.reel" + @requires montage/core/core + @requires montage/ui/check-input +*/ +var Montage = require("montage").Montage, + Component = require("ui/component").Component, + CheckInput = require("ui/check-input").CheckInput; + +/** + + @class module:"montage/ui/input-checkbox.reel".InputCheckbox + @extends module:montage/ui/check-input.CheckInput +*/ +var InputCheckbox = exports.InputCheckbox = Montage.create(CheckInput, {}); +InputCheckbox.addAttributes( /** @lends module:"montage/ui/input-checkbox.reel".InputCheckbox# */ { + +/** + Specifies if the checkbox control should receive focus when the document loads. Because Montage components are loaded asynchronously after the document has loaded, setting this property has no effect on the element's focus state. + @type {boolean} + @default false +*/ + autofocus: {value: false, dataType: 'boolean'}, + +/** + Specifies if the checkbox control is disabled. + @type {boolean} + @default false +*/ + disabled: {value: false, dataType: 'boolean'}, + +/** + Specifies if the checkbox is in it checked state or not. + @type {boolean} + @default false +*/ + checked: {value: false, dataType: 'boolean'}, + +/** + The value of the id attribute of the form with which to associate the element. + @type {string} + @default null +*/ + form: null, + +/** + The name part of the name/value pair associated with this element for the purposes of form submission. + @type {string} + @default null +*/ + name: null, + +/** + Specifies if this control is readonly. + @type {boolean} + @default false +*/ + readonly: {value: false, dataType: 'boolean'}, + +/** + A string the browser displays in a tooltip when the user hovers their mouse over the element. + @type {string} + @default null +*/ + title: null, + /* + The value associated with the checkbox. Per the WC3 specification, if the element has a value attribute then the value of that attribute's value is returned; otherwise, it returns "on". + @type {string} + @default "on" + */ + value: {value: 'on'} +}); -- cgit v1.2.3