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