Skip to main content

ElementSearchableDropdown

Options and instance type returned by ElementCreateSearchableDropdown.

Index

Interfaces

CreateOptions

CreateOptions:

optionaldisabled

disabled?: boolean

optionalemptyText

emptyText?: string

optionalparent

parent?: Node

optionalplaceholder

placeholder?: string

optionalsearchPlaceholder

searchPlaceholder?: string

optionalvalue

value?: string

OptionItem

OptionItem:

optionaldisabled

disabled?: boolean

optionalgroup

group?: string

label

label: string

value

value: string

SearchableDropdownInstance

SearchableDropdownInstance:

Imperative helpers attached to the root element returned from ElementCreateSearchableDropdown.

bcSetDisabled

  • bcSetDisabled(disabled): void
  • Parameters

    • disabled: boolean

    Returns void

bcSetOptions

  • bcSetOptions(optionsList, newValue): void
  • Parameters

    • optionsList: readonly OptionItem[]
    • optionalnewValue: string

    Returns void

bcSetValue

  • bcSetValue(newValue): void
  • Parameters

    • newValue: string

    Returns void

Type Aliases

SearchableDropdownElement

SearchableDropdownElement: HTMLDivElement & SearchableDropdownInstance

Root <div> of a searchable dropdown.