Skip to main content

LabeledAutocompleteFormInput

geovisto-mapReadme | API


geovisto-map / LabeledAutocompleteFormInput

Class: LabeledAutocompleteFormInput

This class represents labeled text form input with autocomplete.

Author

Jakub Kachlik

Author

Jiri Hynek (refactoring, code review)

Extends

Implements

Constructors

new LabeledAutocompleteFormInput()

new LabeledAutocompleteFormInput(props): LabeledAutocompleteFormInput

Parameters

props: ILabeledAutocompleteFormInputProps

Returns

LabeledAutocompleteFormInput

Overrides

AbstractMapFormInput.constructor

Source

model/internal/inputs/labeled/autocomplete/LabeledAutocompleteFormInput.ts:51

Properties

completionListDiv

private completionListDiv: HTMLDivElement

Source

model/internal/inputs/labeled/autocomplete/LabeledAutocompleteFormInput.ts:41


formDiv

private formDiv: HTMLDivElement

DOM elements are created when required - optimization

Source

model/internal/inputs/labeled/autocomplete/LabeledAutocompleteFormInput.ts:38


input

private input: HTMLInputElement

Source

model/internal/inputs/labeled/autocomplete/LabeledAutocompleteFormInput.ts:40


inputDiv

private inputDiv: HTMLDivElement

Source

model/internal/inputs/labeled/autocomplete/LabeledAutocompleteFormInput.ts:39


options

private options: string[]

Current options.

Source

model/internal/inputs/labeled/autocomplete/LabeledAutocompleteFormInput.ts:33


placeholder

private placeholder: string

Source

model/internal/inputs/labeled/autocomplete/LabeledAutocompleteFormInput.ts:43


selectedCompletionItem

private selectedCompletionItem: number

Index of the currently selected item.

Source

model/internal/inputs/labeled/autocomplete/LabeledAutocompleteFormInput.ts:49


setData()?

private optional setData: (val) => void

Parameters

val: string

Returns

void

Source

model/internal/inputs/labeled/autocomplete/LabeledAutocompleteFormInput.ts:44

Methods

changeOptions()

changeOptions(newOptions): void

Parameters

newOptions: string[]

Returns

void

Source

model/internal/inputs/labeled/autocomplete/LabeledAutocompleteFormInput.ts:86


create()

create(): HTMLDivElement

It creates an input element.

Returns

HTMLDivElement

Implementation of

IMapFormInput.create

Overrides

AbstractMapFormInput.create

Source

model/internal/inputs/labeled/autocomplete/LabeledAutocompleteFormInput.ts:139


createForm()

protected createForm(): HTMLDivElement

Returns

HTMLDivElement

Source

model/internal/inputs/labeled/autocomplete/LabeledAutocompleteFormInput.ts:152


createListeners()

protected createListeners(): void

Creates event listeners and creates/removes

Returns

void

Source

model/internal/inputs/labeled/autocomplete/LabeledAutocompleteFormInput.ts:183


createMenu()

protected createMenu(): void

Returns

void

Source

model/internal/inputs/labeled/autocomplete/LabeledAutocompleteFormInput.ts:266


getCurrentOptions()

private getCurrentOptions(): object

Returns

object

match

match: string[]

other

other: string[]

Source

model/internal/inputs/labeled/autocomplete/LabeledAutocompleteFormInput.ts:105


getProps()

protected getProps(): IMapFormInputProps

It provides the props to the exteded classes.

Returns

IMapFormInputProps

Inherited from

AbstractMapFormInput.getProps

Source

model/internal/inputs/abstract/AbstractMapFormInput.ts:23


getValue()

getValue(): string

It returns value of the input element.

Returns

string

Implementation of

IMapFormInput.getValue

Overrides

AbstractMapFormInput.getValue

Source

model/internal/inputs/labeled/autocomplete/LabeledAutocompleteFormInput.ts:123


redrawMenu()

redrawMenu(): void

Returns

void

Source

model/internal/inputs/labeled/autocomplete/LabeledAutocompleteFormInput.ts:91


setDisabled()

setDisabled(disabled): void

It sets the input disabled.

Parameters

disabled: boolean

Returns

void

Implementation of

IMapFormInput.setDisabled

Overrides

AbstractMapFormInput.setDisabled

Source

model/internal/inputs/labeled/autocomplete/LabeledAutocompleteFormInput.ts:73


setOptions()

setOptions(newOptions): void

Parameters

newOptions: string[]

Returns

void

Source

model/internal/inputs/labeled/autocomplete/LabeledAutocompleteFormInput.ts:98


setValue()

setValue(value): void

It sets value of the input element.

Parameters

value: string

Returns

void

Implementation of

IMapFormInput.setValue

Overrides

AbstractMapFormInput.setValue

Source

model/internal/inputs/labeled/autocomplete/LabeledAutocompleteFormInput.ts:132


ID()

static ID(): string

Static function returns identifier of the input type.

Returns

string

Source

model/internal/inputs/labeled/autocomplete/LabeledAutocompleteFormInput.ts:66