Skip to content
Snippets Groups Projects
Commit 28fb804c authored by Hagen Dreßler's avatar Hagen Dreßler
Browse files

Edit html and style of answer-statistic

parent cfba20e6
1 merge request!82Resolve "answer statistics (template)"
This commit is part of merge request !85. Comments created here will be created in the context of that merge request.
<mat-card>
<mat-progress-bar [value]="50">
</mat-progress-bar>
</mat-card>
<div fxLayout="row" fxLayoutAlign="center">
<div fxLayout="column" fxLayoutGap="20px">
<mat-card>
<mat-tab-group>
<mat-tab label="Answer statistic">
<mat-select placeholder="Answers" fxLayoutAlign="right">
<mat-option *ngFor="let state of states" [value]="state.value">
{{ state.value }}
</mat-option>
</mat-select>
<div class="bars">
Answer 1
<mat-progress-bar [value]="50" #col *ngIf="state.value === 'Responded' :">
</mat-progress-bar>
</div>
</mat-tab>
</mat-tab-group>
</mat-card>
</div>
</div>
mat-card {
min-width: 800px;
justify-content: center;
}
mat-select {
max-width: 100px;
margin-top: 10px;
margin-left: 675px;
}
.bars {
margin-top: 20px;
}
......@@ -6,6 +6,10 @@ import { Component, OnInit } from '@angular/core';
styleUrls: ['./answer-statistics.component.scss']
})
export class AnswerStatisticsComponent implements OnInit {
states = [
{ value: '1', viewValue: 'Responded' },
{ value: '2', viewValue: 'Not responded' },
];
constructor() { }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment