Hierarchy

Properties

displayFn

displayFn: ((value) => string) = ...

Type declaration

    • (value): string
    • Display function. Accepts an object of the same type as the items passed to dropdownValues as argument, and outputs a string. An arrow function can be used to access the this keyword in the calling component. See search input examples for details.

      Parameters

      • value: any

      Returns string

enable

enable: boolean = true

Whether the auto complete directive should be enabled

inputText

inputText: string

Input text, that is taken from ngModel of formControl, there has to be difference between native input value and model value

Readonly onComplete

onComplete: EventEmitter<AutoCompleteEvent> = ...

Event thrown, when the auto ahead text is accepted

options

options: any[]

Values that will fill missing text in the input.

Methods

matcher

  • matcher(str, searchTerm): boolean