"...git@scm.cms.hu-berlin.de:iqb/verona-modules-aspect.git" did not exist on "011cde025833b79fa553036d5fac3cd8497e9b98"
Newer
Older
import { Component, Input } from '@angular/core';
import { FormElementComponent } from '../../directives/form-element-component.directive';
import { CheckboxElement } from 'common/models/elements/input-elements/checkbox';
<div class="mat-form-field"
[style.width.%]="100"
[style.height.%]="100"
[style.background-color]="elementModel.styling.backgroundColor">
<mat-checkbox #checkbox class="example-margin"
[style.color]="elementModel.styling.fontColor"
[style.font-family]="elementModel.styling.font"
[style.font-size.px]="elementModel.styling.fontSize"
[style.font-weight]="elementModel.styling.bold ? 'bold' : ''"
[style.font-style]="elementModel.styling.italic ? 'italic' : ''"
[style.text-decoration]="elementModel.styling.underline ? 'underline' : ''"
(click)="elementModel.readOnly ? $event.preventDefault() : null">
</mat-checkbox>
<mat-error *ngIf="elementFormControl.errors && elementFormControl.touched"
{{elementFormControl.errors | errorTransform: elementModel}}
</mat-error>
</div>
':host ::ng-deep .mat-checkbox-layout {white-space: normal !important}',
'.error-message { position: absolute; display: block; margin-top: 5px; font-size: 75% }'
export class CheckboxComponent extends FormElementComponent {
@Input() elementModel!: CheckboxElement;