mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-2999] added a way to test the validation icon on demo shell (#3431)
This commit is contained in:
@@ -1,8 +1,13 @@
|
|||||||
<adf-form-list [forms]="formList" (row-dblclick)="onRowDblClick($event)">
|
<adf-form-list [forms]="formList" (row-dblclick)="onRowDblClick($event)">
|
||||||
</adf-form-list>
|
</adf-form-list>
|
||||||
<div class="form-container" *ngIf="!isEmptyForm()">
|
<div class="form-container" *ngIf="!isEmptyForm()">
|
||||||
<adf-form #adfForm [form]="form" [data]="restoredData">
|
<adf-form #adfForm [form]="form" [data]="restoredData" [showValidationIcon]="showValidationIcon">
|
||||||
</adf-form>
|
</adf-form>
|
||||||
</div>
|
</div>
|
||||||
<button mat-button (click)="store()" color="primary">{{'FORM-LIST.STORE' | translate }}</button>
|
<button mat-button (click)="store()" color="primary">{{'FORM-LIST.STORE' | translate }}</button>
|
||||||
<button mat-button (click)="restore()" color="primary">{{'FORM-LIST.RESTORE' | translate }}</button>
|
<button mat-button (click)="restore()" color="primary">{{'FORM-LIST.RESTORE' | translate }}</button>
|
||||||
|
<section class="form-list-margin">
|
||||||
|
<mat-slide-toggle color="primary" [(ngModel)]="showValidationIcon">
|
||||||
|
Show Validation Icon
|
||||||
|
</mat-slide-toggle>
|
||||||
|
</section>
|
||||||
|
@@ -6,3 +6,7 @@
|
|||||||
width: 80%;
|
width: 80%;
|
||||||
height: 80%;
|
height: 80%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.form-list-margin {
|
||||||
|
margin-left: 26px;
|
||||||
|
}
|
||||||
|
@@ -36,6 +36,8 @@ export class FormListComponent {
|
|||||||
storedData: any = {};
|
storedData: any = {};
|
||||||
restoredData: any = {};
|
restoredData: any = {};
|
||||||
|
|
||||||
|
showValidationIcon = false;
|
||||||
|
|
||||||
constructor(private formService: FormService, private logService: LogService) {
|
constructor(private formService: FormService, private logService: LogService) {
|
||||||
// Prevent default outcome actions
|
// Prevent default outcome actions
|
||||||
formService.executeOutcome.subscribe(e => {
|
formService.executeOutcome.subscribe(e => {
|
||||||
|
Reference in New Issue
Block a user