@@ -7,57 +7,57 @@ <h1>Formly for Angular</h1>
7
7
</ div >
8
8
< div class ="container-fluid ">
9
9
< div class ="row ">
10
- < div class ="col-sm-4 col-md-4 col-lg-4 "
11
- ng-hide ="editJSON ">
12
-
13
- <!-- Formatted JSON -->
14
- < button class ="btn btn-success "
15
- ng-click ="editJSON = true ">
16
- Edit JSON
17
- </ button >
18
-
19
- < button class ="btn btn-success "
20
- ng-click ="toggleCustomTypeTemplates() ">
21
- {{typeTemplatesButton}}
22
- </ button >
23
-
24
- < h3 > Options</ h3 >
25
- < div source ="toPrettyJSON(formOptions, 4) "
26
- hljs >
27
- </ div >
28
-
29
- < h3 > Fields</ h3 >
30
- < div source ="toPrettyJSON(formFields, 4) "
31
- hljs >
32
- </ div >
33
- </ div >
10
+ < div class ="col-sm-4 col-md-4 col-lg-4 ">
11
+ <!-- Pre configured options -->
12
+ < h3 > Configured Default Options</ h3 >
13
+ < div hljs source ="preConfiguredOptions|json "> </ div >
34
14
35
- < div class ="col-sm-4 col-md-4 col-lg-4 "
36
- ng-show ="editJSON ">
15
+ < span >
16
+ <!-- Formatted JSON -->
17
+ < button class ="btn btn-success "
18
+ ng-click ="editJSON = true "
19
+ ng-hide ="editJSON ">
20
+ Edit JSON
21
+ </ button >
22
+ < button class ="btn btn-success "
23
+ ng-click ="editJSON = false "
24
+ ng-show ="editJSON ">
25
+ Pretty JSON
26
+ </ button >
37
27
38
- <!-- Edit JSON -->
39
- < button class ="btn btn-success "
40
- ng-click ="editJSON = false ">
41
- Pretty JSON
42
- </ button >
28
+ < button class ="btn btn-success "
29
+ ng-click ="toggleCustomTypeTemplates() ">
30
+ {{typeTemplatesButton}}
31
+ </ button >
43
32
44
- < h3 > Options</ h3 >
45
- < div class ="form-group "
46
- ng-class ="{'has-error': formOptionsError} ">
47
- < textarea class ="form-control "
48
- ng-model ="formOptionsStr "
49
- rows ="5 ">
50
- </ textarea >
51
- </ div >
33
+ < h3 > Options (Overrides configured default options)</ h3 >
34
+ < div class ="form-group "
35
+ ng-class ="{'has-error': formOptionsError} "
36
+ ng-show ="editJSON ">
37
+ < textarea class ="form-control "
38
+ ng-model ="formOptionsStr "
39
+ rows ="5 ">
40
+ </ textarea >
41
+ </ div >
42
+ < div source ="toPrettyJSON(formOptions, 4) "
43
+ ng-hide ="editJSON "
44
+ hljs >
45
+ </ div >
52
46
53
- < h3 > Fields</ h3 >
54
- < div class ="form-group "
55
- ng-class ="{'has-error': formFieldsError} ">
56
- < textarea class ="form-control "
57
- ng-model ="formFieldsStr "
58
- rows ="15 ">
59
- </ textarea >
60
- </ div >
47
+ < h3 > Fields</ h3 >
48
+ < div class ="form-group "
49
+ ng-class ="{'has-error': formFieldsError} "
50
+ ng-show ="editJSON ">
51
+ < textarea class ="form-control "
52
+ ng-model ="formFieldsStr "
53
+ rows ="15 ">
54
+ </ textarea >
55
+ </ div >
56
+ < div source ="toPrettyJSON(formFields, 4) "
57
+ ng-hide ="editJSON "
58
+ hljs >
59
+ </ div >
60
+ </ span >
61
61
</ div >
62
62
< div class ="col-sm-4 col-md-4 col-lg-4 ">
63
63
@@ -106,9 +106,6 @@ <h3>Form State</h3>
106
106
</ tbody >
107
107
108
108
</ table >
109
-
110
- < h3 > Configured Default Options</ h3 >
111
- < div hljs source ="preConfiguredOptions|json "> </ div >
112
109
</ div >
113
110
</ div >
114
111
</ div >
0 commit comments