@chatterton/angular2-schema-form
Version:
Angular2 Schema Form (DISCLAIMER: it is not related to angular-schema-form)
17 lines (13 loc) • 636 B
HTML
<div class="widget form-group">
<label [attr.for]="id" class="horizontal control-label">
{{ schema.title }}
</label>
<div class="checkbox">
<label class="horizontal control-label">
<input [attr.required]="schema.required" [formControl]="control" [attr.name]="name" [indeterminate]="control.value !== false && control.value !== true ? true :null" type="checkbox" [attr.disabled]="schema.readOnly">
<input *ngIf="schema.readOnly" [attr.name]="name" type="hidden" [formControl]="control">
{{schema.description}}
</label>
</div>
<span *ngIf="schema.help" class="formHelp">{{schema.help}}</span>
</div>