DropDownRenderer class

Extends

BaseElementRenderer

Index

Constructors

Protected Properties

Public Methods

Protected Methods

Constructors


constructor

⊕ new DropDownRenderer(slot?: HTMLDivElement): DropDownRenderer

Parameters:

  • slot: HTMLDivElement, Optional

Protected Properties


displayedTextElement

● displayedTextElement: HTMLElement


element

● element: HTMLDivElement


Protected Accessors


displayedTextElement

● displayedTextElement: HTMLElement


element

● element: HTMLDivElement


Public Methods


refresh

▸ refresh(): void

Returns void


render

▸ render(appeared?: boolean): HTMLDivElement

Parameters:

  • appeared: boolean, Default value = false

Returns HTMLDivElement


Protected Methods


appear

▸ appear(): void

Returns void


disappear

▸ disappear(): void

Returns void


getClassesToAdd

▸ getClassesToAdd(): string

Returns string


getDisplayedElementText

▸ getDisplayedElementText(): string

Returns string


getEmptyText

▸ getEmptyText(): string

Returns string


getMenu

▸ getMenu(): PopupMenu

Returns PopupMenu


isEditable

▸ isEditable(): boolean

Returns boolean


itemSelected

▸ itemSelected(id: string): void

Parameters:

  • id: string

Returns void


renderDisplayedText

▸ renderDisplayedText(): HTMLElement

Returns HTMLElement


renderEditor

▸ renderEditor(): void

Returns void