Guaxu Docs
Preparing search index...
guaxu-react-forms
useGuaxuForm
Function useGuaxuForm
useGuaxuForm
<
T
extends
FormData
>
(
__namedParameters
:
{
defaultValues
?:
DefaultValues
<
T
>
}
,
)
:
{
form
:
{
DatePicker
:
<
K
extends
string
>
(
props
:
DatePickerProps
<
T
,
K
>
)
=>
Element
;
Form
:
(
props
:
Omit
<
FormProps
<
T
>
,
"methods"
>
)
=>
Element
;
Select
:
<
K
extends
string
>
(
props
:
SelectProps
<
T
,
K
>
)
=>
Element
;
TextInput
:
(
props
:
CommonTextInputProps
<
T
>
|
MaskedTextInputProps
<
T
>
,
)
=>
Element
;
}
;
getValues
:
UseFormGetValues
<
T
>
;
setValues
:
UseFormSetValue
<
T
>
;
watch
:
UseFormWatch
<
T
>
;
}
Type Parameters
T
extends
FormData
Parameters
__namedParameters
:
{
defaultValues
?:
DefaultValues
<
T
>
}
Returns
{
form
:
{
DatePicker
:
<
K
extends
string
>
(
props
:
DatePickerProps
<
T
,
K
>
)
=>
Element
;
Form
:
(
props
:
Omit
<
FormProps
<
T
>
,
"methods"
>
)
=>
Element
;
Select
:
<
K
extends
string
>
(
props
:
SelectProps
<
T
,
K
>
)
=>
Element
;
TextInput
:
(
props
:
CommonTextInputProps
<
T
>
|
MaskedTextInputProps
<
T
>
,
)
=>
Element
;
}
;
getValues
:
UseFormGetValues
<
T
>
;
setValues
:
UseFormSetValue
<
T
>
;
watch
:
UseFormWatch
<
T
>
;
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Guaxu Docs
Loading...