~hokiegeek/biologist-web

ref: 6f953efc1284177078b3366fd8ee300fb26775af biologist-web/src/app/controls/controls.component.html -rw-r--r-- 2.1 KiB
6f953efcHokieGeek Fixed casting error 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<div>
    <div class="btn-group w-100" role="group">
        <button type="button" class="btn btn-primary btn-block rounded-0" (click)="create()">Study Life!</button>
        <button type="button"
                class="btn rounded-0"
                [ngClass]="{'btn-success': autoStart, 'btn-danger': !autoStart}"
                (click)="autoStart = !autoStart">
            Autostart</button>
    </div>
    <div class="text-center w-100 settings-toggle" data-toggle="collapse" data-target="#defaultSettings" title="default settings">
        &#x2304;
    </div>
    <div id="defaultSettings" class="collapse mt-1" role="tabpanel" aria-labelledby="settingsHeading">
        <div id="options" class="w-100 d-flex justify-content-around">
            <div class="d-flex flex-row">
                <div class="input-group">
                    <div class="input-group-prepend">
                        <span class="input-group-text">Rows</span>
                    </div>
                    <input type="text" class="form-control" size="3" placeholder="rows" [(ngModel)]="defaultRows" aria-describedby="basic-addon1">
                </div>
                <div class="input-group ml-1">
                    <div class="input-group-prepend">
                        <span class="input-group-text">Cols</span>
                    </div>
                    <input type="text" class="form-control" size="3" placeholder="columns" [(ngModel)]="defaultColumns" aria-describedby="basic-addon1">
                </div>
            </div>
            <div class="d-flex flex-row">
                <div class="input-group">
                    <div class="input-group-prepend">
                        <span class="input-group-text">Density</span>
                    </div>
                    <input type="text" class="form-control" size="3" placeholder="density" [(ngModel)]="defaultDensity" aria-describedby="basic-addon1">
                    <div class="input-group-append">
                        <span class="input-group-text">%</span>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>