|
1 | 1 | <mat-sidenav-container> |
2 | 2 | <mat-sidenav-content> |
3 | 3 |
|
4 | | - <mtx-split> |
| 4 | + <mtx-split direction="vertical"> |
5 | 5 | <mtx-split-pane> |
6 | | - <code-editor #editor |
7 | | - [style.height]="options.height.value+options.height.unit" |
8 | | - [(ngModel)]="code" |
9 | | - (ngModelChange)="log($event)" |
10 | | - [theme]="options.theme" |
11 | | - [setup]="options.setup" |
12 | | - [disabled]="options.disabled" |
13 | | - [readonly]="options.readonly" |
14 | | - [placeholder]="options.placeholder" |
15 | | - [indentWithTab]="options.indentWithTab" |
16 | | - [indentUnit]="options.indentUnit" |
17 | | - [lineWrapping]="options.lineWrapping" |
18 | | - [highlightWhitespace]="options.highlightWhitespace" |
19 | | - [language]="options.language" |
20 | | - [languages]="languages" /> |
21 | | - </mtx-split-pane> |
22 | 6 |
|
| 7 | + <mtx-split> |
| 8 | + <mtx-split-pane> |
| 9 | + <code-editor #editor |
| 10 | + [style.height]="options.height.value+options.height.unit" |
| 11 | + [(ngModel)]="code" |
| 12 | + (ngModelChange)="log($event)" |
| 13 | + [theme]="options.theme" |
| 14 | + [setup]="options.setup" |
| 15 | + [disabled]="options.disabled" |
| 16 | + [readonly]="options.readonly" |
| 17 | + [placeholder]="options.placeholder" |
| 18 | + [indentWithTab]="options.indentWithTab" |
| 19 | + [indentUnit]="options.indentUnit" |
| 20 | + [lineWrapping]="options.lineWrapping" |
| 21 | + [highlightWhitespace]="options.highlightWhitespace" |
| 22 | + [language]="options.language" |
| 23 | + [languages]="languages" /> |
| 24 | + </mtx-split-pane> |
| 25 | + |
| 26 | + <mtx-split-pane> |
| 27 | + <textarea [style.height]="options.height.value+options.height.unit" |
| 28 | + [(ngModel)]="code"></textarea> |
| 29 | + </mtx-split-pane> |
| 30 | + </mtx-split> |
| 31 | + |
| 32 | + </mtx-split-pane> |
23 | 33 | <mtx-split-pane> |
24 | | - <pre>{{code}}</pre> |
| 34 | + |
| 35 | + <mtx-split> |
| 36 | + <mtx-split-pane> |
| 37 | + <code-editor #editor |
| 38 | + [style.height]="options.height.value+options.height.unit" |
| 39 | + [value]="modifiedCode" |
| 40 | + [theme]="options.theme" |
| 41 | + [setup]="options.setup" |
| 42 | + [readonly]="options.readonly" |
| 43 | + [placeholder]="options.placeholder" |
| 44 | + [indentWithTab]="options.indentWithTab" |
| 45 | + [indentUnit]="options.indentUnit" |
| 46 | + [lineWrapping]="options.lineWrapping" |
| 47 | + [highlightWhitespace]="options.highlightWhitespace" |
| 48 | + [extensions]="unifiedExts" /> |
| 49 | + |
| 50 | + </mtx-split-pane> |
| 51 | + <mtx-split-pane> |
| 52 | + <diff-editor #editor |
| 53 | + [style.height]="options.height.value+options.height.unit" |
| 54 | + [originalValue]="originalCode" |
| 55 | + [modifiedValue]="modifiedCode" |
| 56 | + [orientation]="options2.orientation" |
| 57 | + [revertControls]="options2.revertControls" |
| 58 | + [highlightChanges]="options2.highlightChanges" |
| 59 | + [gutter]="options2.gutter" /> |
| 60 | + |
| 61 | + </mtx-split-pane> |
| 62 | + </mtx-split> |
| 63 | + |
25 | 64 | </mtx-split-pane> |
26 | 65 | </mtx-split> |
27 | 66 |
|
28 | 67 | </mat-sidenav-content> |
29 | 68 |
|
30 | 69 | <mat-sidenav mode="side" position="end" opened> |
31 | | - <gui-form [style.width.px]="300" [form]="form" [config]="config" [model]="options" /> |
| 70 | + <h4>Code Editor</h4> |
| 71 | + <gui-form [config]="config" [model]="options" [form]="form" /> |
| 72 | + <h4>Diff Editor</h4> |
| 73 | + <gui-form [config]="config2" [model]="options2" /> |
32 | 74 | </mat-sidenav> |
33 | 75 | </mat-sidenav-container> |
0 commit comments