オートコンプリート ドロップダウンのオーバーレイ設定を提供します。
// 取得
let settings = this.autocomplete.autocompleteSettings;
<!--設定-->
<input type="text" [igxAutocomplete]="townsPanel" [igxAutocompleteSettings]="settings"/>
// 設定
this.settings = {
positionStrategy: new ConnectedPositioningStrategy({
closeAnimation: null,
openAnimation: null
})
};
コンポーネントのオートコンプリートを有効 / 無効にします。
// 取得
let disabled = this.autocomplete.disabled;
<!--設定-->
<input type="text" [igxAutocomplete]="townsPanel" [igxAutocompleteDisabled]="disabled"/>
// 設定
public disabled = true;
ドロップダウンの項目が選択された後に発生されます。
<input igxInput [igxAutocomplete]="townsPanel" (selectionChanging)='selectionChanging($event)' />
オートコンプリート ディレクティブのターゲットを設定します。
<!-- Set -->
<input [igxAutocomplete]="dropdown" />
...
<igx-drop-down #dropdown>
...
</igx-drop-down>
Sets the target of the navigation directive; If no valid target is passed, it falls back to the drop down context
<!-- Set -->
<input [igxDropDownItemNavigation]="dropdown" />
...
<igx-drop-down #dropdown>
...
</igx-drop-down>
Ignite UI for Angular Autocomplete - ヘルプ
igxAutocomplete ディレクティブは、候補オプションのドロップダウンを表示することにより テキスト入力を向上する方法を提供します。
例: