FormInput<T>
Extends
BaseObserver<T["LISTENER"]>
Extended by
Type Parameters
| Type Parameter | Default type |
|---|---|
T extends FormInputGenerics | FormInputGenerics |
Constructors
Constructor
new FormInput<T>(options): FormInput<T>;
Parameters
| Parameter | Type |
|---|---|
options | T["OPTIONS"] |
Returns
FormInput<T>
Overrides
BaseObserver<T['LISTENER']>.constructor
Properties
| Property | Type |
|---|---|
options | T["OPTIONS"] |
value | T["VALUE"] |
Accessors
error
Get Signature
get error(): string;
Returns
string
label
Get Signature
get label(): string;
Returns
string
name
Get Signature
get name(): string;
Returns
string
placeholder
Get Signature
get placeholder(): string;
Returns
string
valid
Get Signature
get valid(): boolean;
Returns
boolean
visible
Get Signature
get visible(): boolean;
Returns
boolean
Methods
dispose()
dispose(): void;
Returns
void
isValid()
isValid(): boolean;
Whether this field is valid. Hidden fields do not block the form.
Returns
boolean
remove()
remove(): void;
Returns
void
renderControl()
abstract renderControl(options): Element;
Parameters
| Parameter | Type |
|---|---|
options | FormInputRenderOptions |
Returns
Element
renderInputWidget()
renderInputWidget(options): Element;
Parameters
| Parameter | Type |
|---|---|
options | FormInputRenderOptions |
Returns
Element
setValue()
setValue(value): void;
Parameters
| Parameter | Type |
|---|---|
value | T["VALUE"] |
Returns
void
update()
update(options): void;
Parameters
| Parameter | Type |
|---|---|
options | Partial<Omit<T["OPTIONS"], "name" | "value">> |
Returns
void
validate()
validate(): void;
Returns
void