aboutsummaryrefslogtreecommitdiff
path: root/node_modules/montage/ui/tabs.reel/tabs.js
diff options
context:
space:
mode:
authorArmen Kesablyan2012-06-19 01:03:59 -0700
committerArmen Kesablyan2012-06-19 01:03:59 -0700
commit2e13a73e4ee980a6f73f6ff48b2a195eb209a7db (patch)
treed352f5e769eae0e1b7b76ccbeafa9b174b1a9918 /node_modules/montage/ui/tabs.reel/tabs.js
parent244e608645778746d1a3b5aa0d4c0868f7c5c272 (diff)
parentc59eb371559a3061ce53223e249ca97daace5968 (diff)
downloadninja-2e13a73e4ee980a6f73f6ff48b2a195eb209a7db.tar.gz
Merge branch 'refs/heads/master' into binding
Conflicts: js/components/layout/tools-list.reel/tools-list.html js/components/layout/tools-properties.reel/tools-properties.html js/document/document-html.js js/document/templates/app/main.js js/panels/Panel.reel/Panel.js node_modules/montage/ui/native-control.js Signed-off-by: Armen Kesablyan <armen@motorola.com>
Diffstat (limited to 'node_modules/montage/ui/tabs.reel/tabs.js')
-rwxr-xr-xnode_modules/montage/ui/tabs.reel/tabs.js21
1 files changed, 12 insertions, 9 deletions
diff --git a/node_modules/montage/ui/tabs.reel/tabs.js b/node_modules/montage/ui/tabs.reel/tabs.js
index 60b18480..4836e455 100755
--- a/node_modules/montage/ui/tabs.reel/tabs.js
+++ b/node_modules/montage/ui/tabs.reel/tabs.js
@@ -27,13 +27,14 @@ var Montage = require("montage").Montage,
27 27
28var Tabs = exports.Tabs = Montage.create(Component, /** @lends module:"montage/ui/tabs.reel".Tabs# */ { 28var Tabs = exports.Tabs = Montage.create(Component, /** @lends module:"montage/ui/tabs.reel".Tabs# */ {
29 29
30 hasTemplate: { 30 _repetition: {
31 value: true 31 value: null,
32 serializable: true
32 }, 33 },
33 34
34 _repetition: { 35 _indicator: {
35 enumerable: false, 36 value: null,
36 value: null 37 serializable: true
37 }, 38 },
38/** 39/**
39 Description TODO 40 Description TODO
@@ -41,13 +42,14 @@ var Tabs = exports.Tabs = Montage.create(Component, /** @lends module:"montage/u
41 @default {Array} [] 42 @default {Array} []
42 */ 43 */
43 tabs: { 44 tabs: {
44 enumerable: false,
45 distinct: true, 45 distinct: true,
46 serializable: true,
46 value: [] 47 value: []
47 }, 48 },
48 49
49 navController: { 50 navController: {
50 value: null 51 value: null,
52 serializable: true
51 }, 53 },
52 // optional property. If provided, this will result in wiring tab clicks to switching components in content 54 // optional property. If provided, this will result in wiring tab clicks to switching components in content
53 /** 55 /**
@@ -57,6 +59,7 @@ var Tabs = exports.Tabs = Montage.create(Component, /** @lends module:"montage/u
57 */ 59 */
58 content: { 60 content: {
59 enumerable: false, 61 enumerable: false,
62 serializable: true,
60 value: null 63 value: null
61 }, 64 },
62 65
@@ -87,13 +90,13 @@ var Tabs = exports.Tabs = Montage.create(Component, /** @lends module:"montage/u
87 var index = this._indexOf(value); 90 var index = this._indexOf(value);
88 this.navController.selectedIndexes = [index]; 91 this.navController.selectedIndexes = [index];
89 } 92 }
90 } 93 },
94 serializable: true
91 }, 95 },
92 96
93 97
94 _selectedTab: {value: null}, 98 _selectedTab: {value: null},
95 selectedTab: { 99 selectedTab: {
96 distinct: true,
97 enumerable: false, 100 enumerable: false,
98 get: function() { 101 get: function() {
99 return this._selectedTab; 102 return this._selectedTab;