Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SelectComponent

Hierarchy

Index

Constructors

Properties

dropdownElement: HTMLElement
fieldRef: RefObject<HTMLDivElement> = ...
mountedListeners: Map<string, EventListenerOrEventListenerObject> = ...
optimalHeight: number = 0
optimalWidth: number = 0

Accessors

  • get value(): undefined | string | number
  • set value(value: undefined | string | number): void

Methods

  • attachListeners(): void
  • componentWillUnmount(): void
  • getOptimalHeight(maxWidth?: number): number
  • getOptimalWidth(): number
  • handleClickEvent(event: MouseEvent<HTMLElement, MouseEvent>): void
  • handleKeypress(ev: KeyboardEvent<HTMLDivElement>): void
  • hide(index?: number): void
  • nextNotSeparator(direction: "forwards" | "backwards"): number
  • render(): ReactNode
  • renderDropdown(): ReactNode
  • renderOption(index: number, option: SelectOption): ReactNode
  • toggleVisibility(): void