aboutsummaryrefslogtreecommitdiff
path: root/js/panels/PanelContainer/PanelContainer.reel/PanelContainer.html
blob: 76f6b9c431ae1e7526da0987507ab6c6a7d18f4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<!DOCTYPE html>
<!-- <copyright>
 This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
 No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/>
 (c) Copyright 2011 Motorola Mobility, Inc.  All Rights Reserved.
 </copyright> -->
<html lang="en">
<head>

    <script type="text/montage-serialization">
        {
            "panelData": {
                "module": "js/data/panels-data",
                "name": "PanelsData"
            },

            "PanelController": {
                "module": "montage/ui/controller/array-controller",
                "name"  : "ArrayController",
                "properties": {
                    "automaticallyOrganizeObjects": true
                },
                "bindings": {
                    "content": {
                        "boundObject": {"@": "owner"},
                        "boundObjectPropertyPath": "panels",
                        "oneway": true
                    }
                }
            },

            "repetition1": {
                "module": "montage/ui/repetition.reel",
                "name": "Repetition",
                "properties": {
                    "element": {"#": "panels"},
                    "contentController": {"@" : "PanelController"}
                }
            },

            "panel": {
                "module": "js/panels/Panel.reel",
                "name": "Panel",
                "properties": {
                    "element": {"#": "panel"},
                    "identifier" : "panels"
                },
                "bindings": {
                    "name": {
                        "boundObject": {"@": "repetition1"},
                        "boundObjectPropertyPath": "objectAtCurrentIteration.name",
                        "oneway": true
                    },
                    "height": {
                        "boundObject": {"@": "repetition1"},
                        "boundObjectPropertyPath": "objectAtCurrentIteration.height",
                        "oneway": false
                    },
                    "minHeight": {
                        "boundObject": {"@": "repetition1"},
                        "boundObjectPropertyPath": "objectAtCurrentIteration.minHeight",
                        "oneway": true
                    },
                    "maxHeight": {
                        "boundObject": {"@": "repetition1"},
                        "boundObjectPropertyPath": "objectAtCurrentIteration.maxHeight",
                        "oneway": true
                    },
                    "flexible": {
                        "boundObject": {"@": "repetition1"},
                        "boundObjectPropertyPath": "objectAtCurrentIteration.flexible",
                        "oneway": true
                    },
                    "collapsed": {
                        "boundObject": {"@": "repetition1"},
                        "boundObjectPropertyPath": "objectAtCurrentIteration.collapsed",
                        "oneway": false
                    },
                    "modulePath": {
                        "boundObject": {"@": "repetition1"},
                        "boundObjectPropertyPath": "objectAtCurrentIteration.modulePath",
                        "oneway": true
                    },
                    "moduleName": {
                        "boundObject": {"@": "repetition1"},
                        "boundObjectPropertyPath": "objectAtCurrentIteration.moduleName",
                        "oneway": true
                    },
                    "contentComponent": {
                        "boundObject": {"@": "repetition1"},
                        "boundObjectPropertyPath": "objectAtCurrentIteration.contentComponent",
                        "oneway": false
                    }
                },
                "listeners": [
                    {
                        "type": "resizeStart",
                        "listener": {"@": "owner"}
                    },
                    {
                        "type": "resizeMove",
                        "listener": {"@": "owner"}
                    },
                    {
                        "type": "resizeEnd",
                        "listener": {"@": "owner"}
                    }
                ]
            },

            "owner": {
                "module": "js/panels/PanelContainer/PanelContainer.reel",
                "name": "PanelContainer",
                "properties": {
                    "element": {"#": "panelContainer"},
                    "repeater": {"@": "repetition1"},
                    "panelData": {"@": "panelData" },
                    "panelController" : {"@" : "PanelController"}
                },
                "listeners": [
                    {
                        "type": "panelResizing",
                        "listener": {"@": "owner"}
                    },
                    {
                        "type": "action",
                        "listener": {"@": "owner"}
                    },
                    {
                        "type": "dropped",
                        "listener": {"@": "owner"}
                    }
                ]
            }
        }
    </script>

	</head>
<body>
    <section id="panelContainer">
		<article id="panels" class="panels">
            <article id="panel"></article>
		</article>
    </section>
</body>
</html>