Switch button and event

// html

<div class="form-group mb-2">
  <label class="mb-1">Select Item</label> <span style="color: red;"> *</span>
  <select class="form-select form-control" formControlName="item"  (change)="itemsOnChange($event)">
    <option [ngValue]=0>-- All Items --</option>
    <option *ngFor="let item of ItemLocationList" [ngValue]="item.itemNumber">
        {{item.itemNumber}}
    </option>
  </select>
</div>

<div class="form-group mb-2" *ngIf="selectedItem">
  <label class="form-check-label">Summary Report</label>
  <div class="form-check form-switch">
    <input class="form-check-input" type="checkbox" style="width:35px;height:20px;" 
        formControlName="isSummary" value="0">
  </div>
</div>

Last updated

Was this helpful?