Skip to content

SearchComponent

Extends

Constructors

new SearchComponent()

new SearchComponent(containerEl): SearchComponent

Parameters

containerEl: HTMLElement

Returns

SearchComponent

Overrides

AbstractTextComponent.constructor

Properties

clearButtonEl

clearButtonEl: HTMLElement


disabled

disabled: boolean

Inherited from

AbstractTextComponent.disabled


inputEl

inputEl: HTMLInputElement

Inherited from

AbstractTextComponent.inputEl

Methods

getValue()

getValue(): string

Returns

string

Inherited from

AbstractTextComponent.getValue


onChange()

onChange(callback): this

Parameters

callback

Returns

this

Inherited from

AbstractTextComponent.onChange


onChanged()

onChanged(): void

Returns

void

Overrides

AbstractTextComponent.onChanged


registerOptionListener()

registerOptionListener(listeners, key): this

Parameters

listeners: Record<string, (value?) => string>

key: string

Returns

this

Inherited from

AbstractTextComponent.registerOptionListener


setDisabled()

setDisabled(disabled): this

Parameters

disabled: boolean

Returns

this

Inherited from

AbstractTextComponent.setDisabled


setPlaceholder()

setPlaceholder(placeholder): this

Parameters

placeholder: string

Returns

this

Inherited from

AbstractTextComponent.setPlaceholder


setValue()

setValue(value): this

Parameters

value: string

Returns

this

Inherited from

AbstractTextComponent.setValue


then()

then(cb): this

Facilitates chaining

Parameters

cb

Returns

this

Inherited from

AbstractTextComponent.then