UNPKG

novo-elements

Version:

Bullhorn's NOVO Element Repository for Angular 2

11 lines (10 loc) 993 B
<button theme="secondary" *ngIf="!myFieldsetsForm.showingAllFields && !(myFieldsetsForm.allFieldsRequired || myFieldsetsForm.allFieldsNotRequired)" (click)="myFieldsetsForm.showAllFields()">Show All Fields</button> <button theme="secondary" *ngIf="!myFieldsetsForm.showingRequiredFields && !(myFieldsetsForm.allFieldsRequired || myFieldsetsForm.allFieldsNotRequired)" (click)="myFieldsetsForm.showOnlyRequired()">Show Required Fields</button> <novo-dynamic-form class="dynamic" layout="vertical" [fieldsets]="fieldsets" [(form)]="fieldsetsForm" #myFieldsetsForm></novo-dynamic-form> <footer class="dynamic-demo-footer"> <button (click)="save(myform)" theme="primary" icon="check">Save</button> <button (click)="clear()" theme="secondary" icon="check">Clear</button> </footer> <div class="final-value">Valid: {{myform.isValid | json}}</div> <div class="final-value">Values: {{myform.values | json}}</div> <div class="final-value">Updated Values: {{myform.updatedValues() | json}}</div>