Skip to main content

FilterSelectFormInput

geovisto-map • Readme | API


geovisto-map / FilterSelectFormInput

Class: FilterSelectFormInput

This class represents a map input composed of three selects used for filters.

Author​

Jiri Hynek

Extends​

Constructors​

new FilterSelectFormInput()​

new FilterSelectFormInput(props): FilterSelectFormInput

Parameters​

• props: IFilterFormInputProps

Returns​

FilterSelectFormInput

Overrides​

AbstractMapFormInput.constructor

Source​

model/internal/inputs/filter/select/FilterSelectFormInput.ts:30

Properties​

input​

private input: object

Input element is composed of 3 HTML select elements

data?​

optional data: HTMLSelectElement

op?​

optional op: HTMLSelectElement

val?​

optional val: HTMLInputElement

Source​

model/internal/inputs/filter/select/FilterSelectFormInput.ts:24


inputDiv?​

private optional inputDiv: HTMLDivElement

The input element is created when required.

Source​

model/internal/inputs/filter/select/FilterSelectFormInput.ts:19

Methods​

create()​

create(): HTMLElement

It returns filter div element composed of 2 selects and one input element.

Returns​

HTMLElement

Overrides​

AbstractMapFormInput.create

Source​

model/internal/inputs/filter/select/FilterSelectFormInput.ts:51


createInputElement()​

protected createInputElement(): HTMLInputElement

Help static function which creates select element.

Returns​

HTMLInputElement

Source​

model/internal/inputs/filter/select/FilterSelectFormInput.ts:96


createSelectElement()​

protected createSelectElement(onChangeAction, options): HTMLSelectElement

Help static function which creates select element.

Parameters​

• onChangeAction: null | (this, ev) => unknown

• options: string[]

Returns​

HTMLSelectElement

Source​

model/internal/inputs/filter/select/FilterSelectFormInput.ts:79


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(): IFilterFormInputValue

It returns values of the inputs.

Returns​

IFilterFormInputValue

Overrides​

AbstractMapFormInput.getValue

Source​

model/internal/inputs/filter/select/FilterSelectFormInput.ts:107


setDisabled()​

setDisabled(disabled): void

It sets the input disabled.

Parameters​

• disabled: boolean

Returns​

void

Overrides​

AbstractMapFormInput.setDisabled

Source​

model/internal/inputs/filter/select/FilterSelectFormInput.ts:118


setValue()​

setValue(value): void

It sets values of the inputs.

Parameters​

• value: IFilterFormInputValue

Returns​

void

Overrides​

AbstractMapFormInput.setValue

Source​

model/internal/inputs/filter/select/FilterSelectFormInput.ts:138


ID()​

static ID(): string

Static function returns identifier of the input type

Returns​

string

Source​

model/internal/inputs/filter/select/FilterSelectFormInput.ts:44