单击其他单选按钮后,如何选择开始日期后重置输入字段

时间:2019-05-30 07:46:42

标签: html angular

                            <label>
                                <input formControlName="options" [(ngModel)]="options" type="radio" [value]="true" [checked]="options" (click)="checkInputField()" />  Date Range
                                <input formControlName="options" [(ngModel)]="options" type="radio" [value]="false" [checked]="!options" (click)="checkInputField()" /> Date Weekly
                            </label>
                        </div>
                        <div class="daterangeline">
                            <div agmoDatetimeMoment class="txtdateRange">
                                <!--DATE RANGE-->
                                <div *ngIf="options" class="col-xs-4 col-sm-3 col-md-4 col-lg-3">
                                    <div>
                                        <label>
                                            Start Date
                                        </label>
                                    </div>
                                    <div class="selectDate">
                                        <div class="flexCenter">
                                            <input class="form-control dateBox" placeholder="- Start Date -"
                                                   id="d1" formControlName="startDate" (ngModelChange)="changeDateRange()" ngbDatepicker #d1="ngbDatepicker" readonly>
                                            <img class="imgCalendar" (click)="d1.toggle()" src="../../assets/img/Slicing/b_event_icon@2x.png" />
                                        </div>
                                    </div>
                                </div>

单击日期范围后,选择开始日期。然后,如果要选择“每周一次”,请单击“希望”,然后单击“开始日期”。

0 个答案:

没有答案