diff options
author | Jonathan Duran | 2012-06-20 15:04:45 -0700 |
---|---|---|
committer | Jonathan Duran | 2012-06-20 15:04:45 -0700 |
commit | c6ae80c488621d4ac189cb63309b6258115f823a (patch) | |
tree | dfa26112e1830972fcb212bbb5b17c9a901c645f /node_modules/montage/ui/native/input-checkbox.reel/input-checkbox.js | |
parent | 022e714cb5d10cd8575ab9907eddfb184a990b66 (diff) | |
parent | c9852665eadc1acb9c1c881d207c4bd9ef88805f (diff) | |
download | ninja-c6ae80c488621d4ac189cb63309b6258115f823a.tar.gz |
Merge branch 'refs/heads/NINJAmaster' into Timeline-merge-candidate
Diffstat (limited to 'node_modules/montage/ui/native/input-checkbox.reel/input-checkbox.js')
-rw-r--r-- | node_modules/montage/ui/native/input-checkbox.reel/input-checkbox.js | 77 |
1 files changed, 77 insertions, 0 deletions
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 @@ | |||
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 | @module "montage/ui/input-checkbox.reel" | ||
8 | @requires montage/core/core | ||
9 | @requires montage/ui/check-input | ||
10 | */ | ||
11 | var Montage = require("montage").Montage, | ||
12 | Component = require("ui/component").Component, | ||
13 | CheckInput = require("ui/check-input").CheckInput; | ||
14 | |||
15 | /** | ||
16 | |||
17 | @class module:"montage/ui/input-checkbox.reel".InputCheckbox | ||
18 | @extends module:montage/ui/check-input.CheckInput | ||
19 | */ | ||
20 | var InputCheckbox = exports.InputCheckbox = Montage.create(CheckInput, {}); | ||
21 | InputCheckbox.addAttributes( /** @lends module:"montage/ui/input-checkbox.reel".InputCheckbox# */ { | ||
22 | |||
23 | /** | ||
24 | 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. | ||
25 | @type {boolean} | ||
26 | @default false | ||
27 | */ | ||
28 | autofocus: {value: false, dataType: 'boolean'}, | ||
29 | |||
30 | /** | ||
31 | Specifies if the checkbox control is disabled. | ||
32 | @type {boolean} | ||
33 | @default false | ||
34 | */ | ||
35 | disabled: {value: false, dataType: 'boolean'}, | ||
36 | |||
37 | /** | ||
38 | Specifies if the checkbox is in it checked state or not. | ||
39 | @type {boolean} | ||
40 | @default false | ||
41 | */ | ||
42 | checked: {value: false, dataType: 'boolean'}, | ||
43 | |||
44 | /** | ||
45 | The value of the id attribute of the form with which to associate the element. | ||
46 | @type {string} | ||
47 | @default null | ||
48 | */ | ||
49 | form: null, | ||
50 | |||
51 | /** | ||
52 | The name part of the name/value pair associated with this element for the purposes of form submission. | ||
53 | @type {string} | ||
54 | @default null | ||
55 | */ | ||
56 | name: null, | ||
57 | |||
58 | /** | ||
59 | Specifies if this control is readonly. | ||
60 | @type {boolean} | ||
61 | @default false | ||
62 | */ | ||
63 | readonly: {value: false, dataType: 'boolean'}, | ||
64 | |||
65 | /** | ||
66 | A string the browser displays in a tooltip when the user hovers their mouse over the element. | ||
67 | @type {string} | ||
68 | @default null | ||
69 | */ | ||
70 | title: null, | ||
71 | /* | ||
72 | The value associated with the checkbox. Per the WC3 specification, if the element has a <code>value</code> attribute then the value of that attribute's value is returned; otherwise, it returns "on". | ||
73 | @type {string} | ||
74 | @default "on" | ||
75 | */ | ||
76 | value: {value: 'on'} | ||
77 | }); | ||