我正在使用 Infragistics / igx-input-group 和 igx-drop-down 元素在我的应用程序上创建一个下拉列表。一切正常,我可以从 REST API 获取数据就好了,但我在显示所选项目时遇到问题。即使显示正确的项目,下部也被切断,难以阅读。所以我不确定我错过了什么,但我正在寻找一种方法来使下拉列表中的文本区域的大小更大或现有框中的字体更小,以便用户可以看到完整的选定文本。
<form novalidate [formGroup]="form">
<igx-input-group #inputGroup class="input-group" [igxToggleAction]="dropDown">
<input #input class="input"
type="text"
igxInput
[igxDropDownItemNavigation]="igxDropDown"
readonly= "true"
placeholder="{{placeholder}}"
formControlName="selected"
(keydown.ArrowDown)="openDropDown()"/>
<label *ngIf="label && label.length" igxLabel>{{label}}</label>
<igx-suffix igxButton="icon"
class="dropdownToggleButton"
igxRipple>
<igx-icon *ngIf="igxDropDown.collapsed; else toggleUp" fontSet="material">arrow_drop_down</igx-icon>
<ng-template #toggleUp>
<igx-icon fontSet="material">arrow_drop_up</igx-icon>
</ng-template>
</igx-suffix>
</igx-input-group>
<igx-drop-down #dropDown (onSelection)="onSelection($event)">
<igx-drop-down-item *ngFor="let option of options"
[value]="option.value"
[isSelected]="option.name === selected.value">
{{ option.name }}
</igx-drop-down-item>
</igx-drop-down>
</form>