fixed sensor setting

This commit is contained in:
snoop 2018-02-27 18:31:12 +09:00
parent 4a1af6b021
commit a066ffbfbe
3 changed files with 9 additions and 7 deletions

View File

@ -5,10 +5,10 @@
<mat-form-field class="example-full-width" fxLayoutAlign="center"> <mat-form-field class="example-full-width" fxLayoutAlign="center">
<input matInput placeholder="Name" value="Sensor 000000"> <input matInput placeholder="Name" value="Sensor 000000">
</mat-form-field> </mat-form-field>
<div class="example-selected-value">주기 : {{favoriteSeason}} 초</div> <div class="example-selected-value">주기 : {{selectInterval}} 초</div>
<mat-radio-group class="example-radio-group" [(ngModel)]="favoriteSeason"> <mat-radio-group class="example-radio-group" [(ngModel)]="selectInterval">
<mat-radio-button class="example-radio-button" *ngFor="let season of seasons" [value]="season"> <mat-radio-button class="example-radio-button" *ngFor="let interval of intervals" [value]="interval">
{{season}} 초 {{interval}} 초
</mat-radio-button> </mat-radio-button>
</mat-radio-group> </mat-radio-group>

View File

@ -17,13 +17,13 @@ export class SensorItemResult {
}) })
export class SettingResultComponent implements OnInit, AfterContentInit { export class SettingResultComponent implements OnInit, AfterContentInit {
favoriteSeason: string; selectInterval: string;
sensorItemResultList: Array<SensorItemResult>; sensorItemResultList: Array<SensorItemResult>;
optionList: Array<number>; optionList: Array<number>;
constructor() { } constructor() { }
seasons = [ intervals = [
'600', '600',
'400', '400',
'200', '200',

View File

@ -25,7 +25,9 @@
<mat-form-field class="example-full-width"> <mat-form-field class="example-full-width">
<input matInput type="password" placeholder="Password" value=""> <input matInput type="password" placeholder="Password" value="">
</mat-form-field> </mat-form-field>
<div fxLayout="row" fxLayoutWrap fxLayoutAlign="right">
<button mat-button>Confirm</button>
</div>
</form> </form>
</mat-card-content> </mat-card-content>
</mat-card> </mat-card>