License

Copyright 2016 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

 http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Hierarchy

Constructors

Properties

activeCompletionCancellationToken: undefined | CancellationTokenSource = undefined
activeCompletionPromise: null | Promise<CompletionResult> = null
activeIndex: number = -1

Index of the active completion. The active completion is displayed as the hint text and is highlighted in the dropdown.

commonPrefix: string = ''
completer: Completer
completionDisabled: number = -1
completionResult: null | CompletionResult = null
completionsVirtualList: undefined | VirtualList = undefined
completionsVisible: boolean = false
debouncedUpdateHintState: DebouncedFunc<(() => void)> = ...
disposedStacks: any
dropdownContentsStale: boolean = true
dropdownStyleStale: boolean = true
element: HTMLDivElement = ...
hasFocus: boolean = false
hasResultForDropdown: boolean = false
hintElement: HTMLSpanElement = ...
inputElement: HTMLSpanElement = ...
onCommit: Signal<((value: string, explicit: boolean) => void)> = ...
onInput: Signal<((value: string) => void)> = ...
prevInputValue: undefined | string = ''
refCount: number = 1
resizeObserver: ResizeObserver = ...
scheduleUpdateCompletions: (() => void)

Type declaration

    • (): void
    • Returns void

wasDisposed: undefined | boolean

Accessors

Methods

  • This sets the active completion, which causes it to be highlighted and displayed as the hint. Additionally, if the user hits tab then it is chosen.

    Parameters

    • index: number

    Returns void

  • Parameters

    • value: string
    • selection: undefined | {
          begin: number;
          end: number;
      } = undefined

    Returns void

Generated using TypeDoc