[Tizen] temporal API to make users use Container class
[platform/core/csapi/nui.git] / NUISamples / NUISamples / NUISamples.Tizen / res / json / date-picker-template.json
1 /*
2  * Copyright (c) 2017 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   // Data picker loaded directly on to the stage
19   //
20   "templates": {
21     "date-picker":
22     {
23       "type":"FlexContainer",
24       "name":"exampleDatePicker",
25       "flexDirection":"ROW",
26       "size":[480.0, 150, 0 ],
27       "actors": [
28       {
29
30         "type": "Spin",
31         "name": "Year",
32         "Value":2017,
33         "MinValue":1900,
34         "MaxValue":2100,
35         "Step":1,
36         "TextColor":[0.0,0.0,1.0,1.0],
37         "properties": { // properties registered dynamically
38             "flex":0.3,
39             "flexMargin": [5.0,0.0,5.0,0.0]
40         }
41       },
42       {
43
44         "type": "Spin",
45         "name": "Month",
46         "Value":10,
47         "Step":1,
48         "MinValue":1,
49         "MaxValue":12,
50         "TextColor":[1.0,1.0,1.0,1.0],
51         "properties": { // properties registered dynamically
52             "flex":0.3,
53             "flexMargin": [5.0,0.0,5.0,0.0]
54         }
55
56       },
57       {
58
59         "type": "Spin",
60         "name": "Day",
61         "Value":1,
62         "MinValue":1,
63         "MaxValue":31,
64         "TextColor":[1.0,0.0,0.0,1.0],
65          "properties": { // properties registered dynamically
66             "flex":0.3,
67             "flexMargin": [5.0,0.0,5.0,0.0]
68         }
69       }]
70
71     }
72 }
73
74 }
75