LWT JavaScript API
    Preparing search index...
    • Build a word details panel from API data. Fetches term details via API and renders them as HTML.

      Parameters

      • termId: number

        Term ID to fetch details for

      • Optionalann: string

        Optional annotation to highlight in translation

      Returns Promise<HTMLElement>

      Promise resolving to HTMLElement with term details