mirror of https://github.com/Squidex/squidex.git
3 changed files with 115 additions and 21 deletions
@ -1,9 +1,11 @@ |
|||
<div class="form-check" *ngFor="let value of values"> |
|||
<input type="checkbox" class="form-check-input" id="{{controlId}}{{value}}" |
|||
(blur)="callTouched()" |
|||
(change)="check($event.target.checked, value)" |
|||
[checked]="isChecked(value)" |
|||
[disabled]="snapshot.isDisabled"> |
|||
|
|||
<label class="form-check-label" for="{{controlId}}{{value}}">{{value}}</label> |
|||
<div #container (sqxResized)="updateContainerWidth($event.width)"> |
|||
<div class="form-check" [class.form-check-block]="!isSingleLine" [class.form-check-inline]="isSingleLine" *ngFor="let value of values"> |
|||
<input type="checkbox" class="form-check-input" id="{{controlId}}{{value}}" |
|||
(blur)="callTouched()" |
|||
(change)="check($event.target.checked, value)" |
|||
[checked]="isChecked(value)" |
|||
[disabled]="snapshot.isDisabled"> |
|||
|
|||
<label class="form-check-label" for="{{controlId}}{{value}}">{{value}}</label> |
|||
</div> |
|||
</div> |
|||
@ -1,13 +1,10 @@ |
|||
.form-check { |
|||
display: block; |
|||
margin-bottom: .5rem; |
|||
margin-left: 0; |
|||
} |
|||
.form-check-block { |
|||
& { |
|||
margin-bottom: .5rem; |
|||
margin-left: 0; |
|||
} |
|||
|
|||
.form-check-input { |
|||
margin-top: .4rem; |
|||
} |
|||
|
|||
label { |
|||
min-width: 5rem; |
|||
.form-check-input { |
|||
margin-top: .4rem; |
|||
} |
|||
} |
|||
Loading…
Reference in new issue