首页 > 解决方案 > 如何使组合框可编辑?

问题描述

我有一个组合框,我想让它可编辑,并根据用户输入的字符向用户提供建议。到目前为止,这是我的代码:

<mat-form-field appearance="outline" class="width-1">
            <mat-label>Type of Operation</mat-label>
            <mat-select
              formControlName="typeOperation"
              placeholder="Type of Operation"
              required
            >
              <mat-option
                *ngFor="let item of operationTypes"
                [value]="item.value"
              >
                {{ item.label }}
              </mat-option>
            </mat-select>
          </mat-form-field>

标签: angulartypescriptcomboboxeditautosuggest

解决方案


推荐阅读