sparc - v1.0.1
Preparing search index...
utils/form/FormField.class
FormField
Class FormField<T>
Type Parameters
T
extends
FormFieldType
Index
Constructors
constructor
Properties
_
input
Selector?
_
is
Valid
_
on
Change
Handler?
_
validator
Callback?
_
value
_
was
Touched
Accessors
has
Validation
input
Selector
is
Valid
value
was
Touched
Methods
[to
Primitive]
[to
String
Tag]
focus
On
Input
to
String
validate
Constructors
constructor
new
FormField
<
T
extends
FormFieldType
>
(
props
?:
FormFieldProps
<
T
>
)
:
FormField
<
T
>
Type Parameters
T
extends
FormFieldType
Parameters
Optional
props
:
FormFieldProps
<
T
>
Returns
FormField
<
T
>
Properties
Private
Optional
_
input
Selector
_inputSelector
?:
string
Private
_
is
Valid
_isValid
:
boolean
Private
Optional
_
on
Change
Handler
_onChangeHandler
?:
(
v
:
T
)
=>
void
Private
Optional
_
validator
Callback
_validatorCallback
?:
(
v
:
T
)
=>
boolean
Private
_
value
_value
:
T
Private
_
was
Touched
_wasTouched
:
boolean
Accessors
has
Validation
get
hasValidation
()
:
boolean
Returns
boolean
input
Selector
set
inputSelector
(
selector
:
string
)
:
void
Parameters
selector
:
string
Returns
void
is
Valid
get
isValid
()
:
boolean
Returns
boolean
value
get
value
()
:
T
Returns
T
set
value
(
data
:
T
)
:
void
Parameters
data
:
T
Returns
void
was
Touched
get
wasTouched
()
:
boolean
Returns
boolean
Methods
[to
Primitive]
"[toPrimitive]"
()
:
string
|
T
Returns
string
|
T
[to
String
Tag]
"[toStringTag]"
()
:
string
Returns
string
focus
On
Input
focusOnInput
()
:
void
Returns
void
to
String
toString
()
:
string
|
T
Returns
string
|
T
validate
validate
()
:
null
|
boolean
Returns
null
|
boolean
Settings
Member Visibility
Protected
Private
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
_
input
Selector
_
is
Valid
_
on
Change
Handler
_
validator
Callback
_
value
_
was
Touched
Accessors
has
Validation
input
Selector
is
Valid
value
was
Touched
Methods
[to
Primitive]
[to
String
Tag]
focus
On
Input
to
String
validate
sparc - v1.0.1
Loading...