UNPKG

@chatterton/angular2-schema-form

Version:

Angular2 Schema Form (DISCLAIMER: it is not related to angular-schema-form)

18 lines (14 loc) 635 B
<div class="widget form-group"> <label [attr.for]="id" class="horizontal control-label"> {{ schema.title }} </label> <div class="checkbox"> <label class="horizontal control-label" [for]="name"> <span *ngFor="let option of schema.collection" (click)="check(option.key)" style="user-select: none; cursor: pointer;"> <input [attr.required]="schema.required" [formControl]="control" [checked]="option.checked" [attr.name]="name" type="checkbox" [attr.disabled]="schema.readOnly"> {{ option.value }} </span> </label> </div> <span *ngIf="schema.help" class="formHelp">{{schema.help}}</span> </div>