Skip to main content

SelectInput<T>

Extends

Type Parameters

Type ParameterDefault type
T extends stringstring

Constructors

Constructor

new SelectInput<T>(options): SelectInput<T>;

Parameters

ParameterType
optionsSelectInputOptions<T>

Returns

SelectInput<T>

Overrides

ControlInput<
{
OPTIONS: SelectInputOptions<T>;
} & ControlInputGenerics<T>
>.constructor

Properties

PropertyModifierTypeInherited from
controlpublicAbstractValueControl<T>ControlInput.control
optionspublicSelectInputOptions<T> & FormInputOptions<any>ControlInput.options
valuepublicTControlInput.value

Accessors

error

Get Signature

get error(): string;
Returns

string

Inherited from

ControlInput.error

label

Get Signature

get label(): string;
Returns

string

Inherited from

ControlInput.label

name

Get Signature

get name(): string;
Returns

string

Inherited from

ControlInput.name

placeholder

Get Signature

get placeholder(): string;
Returns

string

Inherited from

ControlInput.placeholder

valid

Get Signature

get valid(): boolean;
Returns

boolean

Inherited from

ControlInput.valid

visible

Get Signature

get visible(): boolean;
Returns

boolean

Inherited from

ControlInput.visible

Methods

dispose()

dispose(): void;

Returns

void

Inherited from

ControlInput.dispose

getOptions()

getOptions(): {
key: string;
label: any;
}[];

Returns

{ key: string; label: any; }[]


isValid()

isValid(): boolean;

Whether this field is valid. Hidden fields do not block the form.

Returns

boolean

Inherited from

ControlInput.isValid

remove()

remove(): void;

Returns

void

Inherited from

ControlInput.remove

renderControl()

renderControl(options): Element;

Parameters

ParameterType
optionsFormInputRenderOptions

Returns

Element

Inherited from

ControlInput.renderControl

renderInputWidget()

renderInputWidget(options): Element;

Parameters

ParameterType
optionsFormInputRenderOptions

Returns

Element

Inherited from

ControlInput.renderInputWidget

setValue()

setValue(value): void;

Parameters

ParameterType
valueT

Returns

void

Inherited from

ControlInput.setValue

update()

update(options): void;

Parameters

ParameterType
optionsPartial<Omit<T["OPTIONS"], "name" | "value">>

Returns

void

Inherited from

ControlInput.update

validate()

validate(): void;

Returns

void

Inherited from

ControlInput.validate