Improved layout in text-field example
[platform/core/uifw/dali-demo.git] / demo / scripts / navigation.json
1 /*
2  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17 {
18   "stage": [{
19     "type": "NavigationControl",
20     "name": "navigation",
21     "parent-origin": "CENTER",
22     "signals": [{
23       "name": "on-stage",
24       "actor": "navigation",
25       "action": "push",
26       "parameters": ["page1"]
27     }],
28     "actors": [{
29       "type": "Page",
30       "name": "page1",
31       "title": "title",
32       "sub-title": "sub title",
33       "actors": [{
34         "type": "TextView", // styles can be additive
35         "parent-origin": [0.5, 0.5, 0],
36         "anchor-point": [0.5, 0.5, 0],
37         "size": [200, 200, 1],
38         "text": "Touch to push new item!",
39         "signals": [{
40           "name": "touched",
41           "actor": "navigation",
42           "action": "push",
43           "parameters": ["page2"]
44         }]
45       }]
46     }, {
47       "type": "Page",
48       "name": "page2",
49       "actors": [{
50         "type": "TextView", // styles can be additive
51         "parent-origin": [0.5, 0.5, 0.5],
52         "anchor-point": [0.5, 0.5, 0.5],
53         "size": [200, 200, 1],
54         "text": "Hello World!"
55       }, {
56         "type": "TextView", // styles can be additive
57         "parent-origin": [0.0, 0.0, 0.5],
58         "anchor-point": [0.0, 0.0, 0.5],
59         "size": [200, 200, 1],
60         "text": "Back",
61         "signals": [{
62           "name": "touched",
63           "actor": "navigation",
64           "action": "pop"
65         }]
66       }, {
67         "type": "TextView", // styles can be additive
68         "parent-origin": [1.0, 1.0, 0.5],
69         "anchor-point": [1.0, 1.0, 0.5],
70         "size": [200, 200, 1],
71         "text": "Quit",
72         "signals": [{
73           "name": "touched",
74           "action": "quit"
75         }]
76       }]
77     }]
78   }]
79 }