UNPKG

@chatterton/angular2-schema-form

Version:

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

10 lines (9 loc) 484 B
<div class="widget form-group"> <label [attr.for]="id" class="horizontal control-label"> {{ schema.title }} </label> <input [name]="name" class="text-widget range-widget" [attr.id]="id" [formControl]="control" [attr.type]="'range'" [attr.min]="schema.minimum" [attr.max]="schema.maximum" [attr.disabled]="schema.readOnly?true:null" > <input *ngIf="schema.readOnly" [attr.name]="name" type="hidden"> <span *ngIf="schema.help" class="formHelp">{{schema.help}}</span> </div>