defines rendering methods for

Hierarchy

  • InputAutoCompleteBase
    • InputAutoComplete

Other

  • Returns InputAutoComplete

_autoCompleteSuggestions: AutoCompleteSuggestions = ...

exposes the

activeSuggestionIndex: number = -1

tracks the active

componentActive: boolean = false

when true the input element has received focus

disabled: boolean = false

LitElement property/attribute determining whether this Web Component is enabled or disabled in the DOM

inputId: string = ''

LitElement property/attribute for the ID of the input element

inputMode: InputModes = 'text'

LitElement property/attribute for the input mode of the input element for OS virtual keyboards

maxSuggestions: number = 5

LitElement property/attribute setting the maximum number of

minInput: number = 0

LitElement property/attribute setting the minimum number of text characters entered before

placeholder: string = ''

LitElement property/attribute for the placeholder value of the input element

required: boolean = false

LitElement property/attribute determining whether this Web Component value is required

suggestionGenerator: (text: string) => Promise<AutoCompleteSuggestion[]> = ...

LitElement property/attribute for the generation strategy of

suggestionsContainer: null | HTMLUListElement = null

references the auto-complete DOM container of suggestions

text: string = ''

LitElement property/attribute for the text displayed in the input element

value: string = ''

LitElement property/attribute for the value selected by this Web Component

customElementName: string = CUSTOM_ELEMENT_NAME

conventional element name of this Web Component

maxSuggestionsPropertyName: string = 'maxSuggestions'

the conventional property name of this.maxSuggestions

minInputPropertyName: string = 'minInput'

the conventional property name of this.minInput

suggestionGeneratorPropertyName: string = 'suggestionGenerator'

the conventional property name of this.suggestionGenerator

  • get styles(): CSSResult
  • renders CSS according to LitElement conventions

    Returns CSSResult

  • clear any

    Parameters

    • clearOnlyValue: boolean = false

    Returns void

  • emit the custom events of this Web Component

    Parameters

    • eventName: string
    • data: { detail: any }

    Returns void

  • conventional LitElement method

    Parameters

    • changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>

    Returns void

  • handle the focus event of the input element of this Web Component

    Parameters

    • e: FocusEvent

    Returns void

  • handle the keydown event of the input element of this Web Component

    Parameters

    • e: KeyboardEvent

    Returns Promise<void>

  • handle the keyup event of the input element of this Web Component

    Parameters

    • e: KeyboardEvent

    Returns Promise<void>

  • handle the click event of a selected

    Parameters

    • suggestionIndex: number

    Returns Promise<void>

  • handles

    Parameters

    • suggestionIndex: number

    Returns void

  • prepares

    Parameters

    • text: string

    Returns Promise<void>

  • conventional LitElement method

    Returns TemplateResult

  • renders

    Parameters

    • data: AutoCompleteSuggestion
    • index: number

    Returns TemplateResult

  • sets this.activeSuggestionIndex based on the specified Arrow-key input

    Parameters

    • key: string

    Returns void

  • conventional LitElement method

    Parameters

    • changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>

    Returns void

attributes

  • Synchronizes property values when attributes change.

    Specifically, when an attribute is set, the corresponding property is set. You should rarely need to implement this callback. If this method is overridden, super.attributeChangedCallback(name, _old, value) must be called.

    See using the lifecycle callbacks on MDN for more information about the attributeChangedCallback.

    Parameters

    • name: string
    • oldVal: null | string
    • newVal: null | string

    Returns void