|
1 | 1 | [ |
2 | 2 | { |
3 | 3 | "type":"view", |
4 | | - "className":"formView", |
5 | | - "title":"The Form 2", |
6 | | - "id":"form2", |
| 4 | + "title":"Sample view", |
| 5 | + "id":"sample1", |
| 6 | + "visible":{ "state":"htitle","expect":true }, |
7 | 7 | "items":[ |
8 | 8 | { |
9 | | - "id":"not", |
| 9 | + "className":"sampleForm", |
| 10 | + "id":"header1", |
10 | 11 | "type":"text", |
11 | | - "title":"The Title", |
12 | | - "visible":{ "state":"female","expect":true } |
| 12 | + "title":"Surpise !", |
| 13 | + "visible":{ "state":"agree","expect":true } |
13 | 14 | } |
14 | 15 | ] |
15 | 16 | }, |
16 | 17 | { |
17 | 18 | "type":"view", |
18 | 19 | "className":"formView", |
19 | | - "title":"The Form", |
20 | | - "id":"form1", |
| 20 | + "title":"Common Form", |
| 21 | + "id":"main", |
21 | 22 | "items":[ |
22 | 23 | { |
23 | 24 | "id":"name", |
24 | 25 | "title":"Name", |
25 | 26 | "type":"input", |
26 | | - "validator":{ "type":"string","max":5 }, |
27 | | - "visible":{ "state":"male","expect":true } |
| 27 | + "validator":{ "type":"string","max":5 } |
28 | 28 | }, |
29 | 29 | { |
30 | | - "title":"Select people", |
| 30 | + "title":"More details", |
31 | 31 | "type":"checkbox", |
32 | | - "id":"color", |
| 32 | + "id":"details", |
33 | 33 | "items":[ |
34 | 34 | { |
35 | | - "visible":{ "state":"color","expect":true }, |
36 | | - "title":"White people", |
| 35 | + "title":"Only first name", |
37 | 36 | "type":"input", |
38 | | - "id":"white", |
| 37 | + "id":"first_name", |
| 38 | + "visible":{ "state":"details","expect":false }, |
39 | 39 | "items":[ |
40 | 40 | { |
41 | | - "title":"Gender", |
| 41 | + "title":"More opts...", |
42 | 42 | "type":"checkbox", |
43 | | - "id":"gender", |
| 43 | + "id":"opts", |
44 | 44 | "items":[ |
45 | 45 | { |
46 | | - "title":"Select one", |
| 46 | + "title":"Hide title", |
47 | 47 | "type":"radio", |
48 | | - "id":"male", |
49 | | - "visible":{ "state":"gender","expect":true } |
| 48 | + "id":"htitle", |
| 49 | + "visible":{ "state":"opts","expect":true } |
50 | 50 | }, |
51 | 51 | { |
52 | | - "title":"Select Two", |
| 52 | + "title":"Hide Agreement", |
53 | 53 | "type":"radio", |
54 | | - "id":"female", |
55 | | - "visible":{ "state":"gender","expect":true } |
| 54 | + "id":"hagree", |
| 55 | + "visible":{ "state":"opts","expect":true } |
56 | 56 | } |
57 | 57 | ] |
58 | 58 | } |
|
61 | 61 | { |
62 | 62 | "type":"view", |
63 | 63 | "id":"pform", |
64 | | - "visible":{ "state":"color","expect":false }, |
65 | | - "className":"peopleForm", |
| 64 | + "visible":{ "state":"details","expect":true }, |
| 65 | + "className":"rowForm", |
66 | 66 | "items":[ |
67 | 67 | { |
68 | | - "title":"Black people name include", |
| 68 | + "title":"First name", |
69 | 69 | "type":"input", |
70 | | - "id":"black" |
| 70 | + "id":"first_name1" |
71 | 71 | }, |
72 | 72 | { |
73 | | - "title":"Black people exclude", |
| 73 | + "title":"Last name", |
74 | 74 | "type":"input", |
75 | | - "id":"info" |
| 75 | + "id":"last_name1" |
76 | 76 | } |
77 | 77 | ] |
78 | 78 | } |
|
82 | 82 | "title":"Agreenment", |
83 | 83 | "type":"checkbox", |
84 | 84 | "id":"agree", |
| 85 | + "visible":{ "state":"hagree","expect":true }, |
85 | 86 | "items":[ |
86 | 87 | { |
87 | 88 | "title":"I'll accept all", |
|
0 commit comments