Foundry Virtual Tabletop - API Documentation - Version 14
    Preparing search index...

    A widget that provides a drop-down list of autocompletion options.

    Index

    Constructors

    Accessors

    • get element(): HTMLMenuElement

      The auto-complete menu.

      Returns HTMLMenuElement

    • get implementation(): typeof Autocomplete

      Retrieve the configured Autocomplete implementation.

      Returns typeof Autocomplete

    Methods

    • Activate an auto-complete menu.

      Parameters

      • target: HTMLElement

        The element the autocomplete is being rendered for.

      • entries: AutocompleteEntry[]

        The entries to render.

      • Optionaloptions: { position?: any; prefix?: string } = {}
        • Optionalposition?: any

          Position the menu. If omitted, the menu is positioned underneath the target.

        • Optionalprefix?: string

          The matched prefix that triggered the autocomplete menu.

      Returns void

    • Commit a choice.

      Returns void

    • Dismiss the auto-complete menu.

      Returns void

    • Move the current auto-complete selection.

      Parameters

      • increment: number = 0

        The number of entries to advance the selection. A negative number moves up, and a positive number moves down.

      Returns void

    • Bind global autocomplete listeners to a given document.

      Parameters

      • document: Document

        The document.

      Returns void