File tree Expand file tree Collapse file tree 1 file changed +6
-13
lines changed
projects/dashjoin/json-schema-form/src/lib/array Expand file tree Collapse file tree 1 file changed +6
-13
lines changed Original file line number Diff line number Diff line change 1- < ng-container *ngIf ="state.schema.layout === 'vertical' ">
1+ < div
2+ [ngStyle] ="{display:'flex', 'flex-wrap': 'wrap', 'flex-direction': this.state.schema.layout === 'vertical' ? 'column':'row'} ">
23 < div *ngFor ="let s of states; let i = index " (mouseenter) ="hover=i " (mouseleave) ="hover=null ">
34 < app-wrapper [state] ="s "> </ app-wrapper >
45 < button mat-icon-button (click) ="remove(i) " [style.visibility] ="i===hover ? 'visible' : 'hidden' ">
56 < mat-icon > remove_circle_outline</ mat-icon >
67 </ button >
78 </ div >
8- </ ng-container >
9- < ng-container *ngIf ="state.schema.layout !== 'vertical' ">
10- < span *ngFor ="let s of states; let i = index " (mouseenter) ="hover=i " (mouseleave) ="hover=null ">
11- < app-wrapper [state] ="s "> </ app-wrapper >
12- < button mat-icon-button (click) ="remove(i) " [style.visibility] ="i===hover ? 'visible' : 'hidden' ">
13- < mat-icon > remove_circle_outline</ mat-icon >
14- </ button >
15- </ span >
16- </ ng-container >
17- < button mat-icon-button (click) =" add() ">
18- < mat-icon > add_circle_outline</ mat-icon >
19- </ button >
9+ < button mat-icon-button (click) =" add() ">
10+ < mat-icon > add_circle_outline</ mat-icon >
11+ </ button >
12+ </ div >
You can’t perform that action at this time.
0 commit comments