Search
Preparing search index...
The search index is not available
@habx/lib-form-helper - v8.1.0
Options
All
Public
Public/Protected
All
Inherited
Menu
@habx/lib-form-helper - v8.1.0
Index
Interfaces
Code
EditorJSONProps
Field
Transform
Use
Final
Form
Received
Props
Use
Prevent
Leave
Decorator
Options
With
Final
Form
Options
Type aliases
Field
Error
Behavior
Formatter
Callback
Parser
Callback
Validation
Callback
Variables
Code
EditorJSON
Field
Error
Form
Context
Form
Section
Form
Section
Watcher
Functions
Form
async
Debounce
join
Names
use
Final
Form
Field
use
Form
Auto
Submit
Decorator
use
Form
Keyboard
Submit
Decorator
use
Formatted
Number
use
Prevent
Leave
Decorator
use
Status
with
Final
Form
Type aliases
Field
Error
Behavior
Field
Error
Behavior
:
"always"
|
"never"
|
"dirty"
|
"touched"
Describes when the error should be displayed
Formatter
Callback
Formatter
Callback
<
InputValue
,
Props
,
FieldValue
>
:
FieldTransform
<
FieldValue
,
InputValue
,
Props
>
Type parameters
InputValue
Props
FieldValue =
any
Parser
Callback
Parser
Callback
<
InputValue
,
Props
,
FieldValue
>
:
FieldTransform
<
InputValue
,
FieldValue
,
Props
>
Type parameters
InputValue
Props
FieldValue =
any
Validation
Callback
Validation
Callback
<
FieldValue
,
Props
>
:
(
value
:
FieldValue
|
undefined
, allValues
:
any
, meta
:
FieldMetaState
<
FieldValue
>
, props
:
Props
)
=>
string
|
undefined
|
Promise
<
string
|
undefined
>
Type parameters
FieldValue
Props
Type declaration
(
value
:
FieldValue
|
undefined
, allValues
:
any
, meta
:
FieldMetaState
<
FieldValue
>
, props
:
Props
)
:
string
|
undefined
|
Promise
<
string
|
undefined
>
Parameters
value:
FieldValue
|
undefined
allValues:
any
meta:
FieldMetaState
<
FieldValue
>
props:
Props
Returns
string
|
undefined
|
Promise
<
string
|
undefined
>
Variables
Const
Code
EditorJSON
Code
EditorJSON
:
LazyExoticComponent
<
NamedExoticComponent
<
CodeEditorJSONProps
>
>
= BaseCodeEditorJSON
Const
Field
Error
Field
Error
:
React.FunctionComponent
<
FieldErrorProps
>
= ...
Const
Form
Context
Form
Context
:
Context
<
FormContextProps
>
= ...
Const
Form
Section
Form
Section
:
React.FunctionComponent
<
FormSectionProps
>
= ...
Const
Form
Section
Watcher
Form
Section
Watcher
:
React.FunctionComponent
<
FormSectionWatcherProps
>
= ...
Functions
Form
Form
<
Values
,
InitialValues
>
(
__namedParameters
:
FormProps
<
Values
,
InitialValues
>
)
:
Element
Type parameters
Values
InitialValues =
Partial
<
Values
>
Parameters
__namedParameters:
FormProps
<
Values
,
InitialValues
>
Returns
Element
async
Debounce
async
Debounce
<
D
,
Value
>
(
func
:
(
value
:
Value
,
...
params
:
any
[]
)
=>
undefined
|
D
|
Promise
<
D
>
, time
:
number
)
:
(
value
:
Value
,
...
params
:
any
[]
)
=>
undefined
|
D
|
Promise
<
undefined
|
D
>
Type parameters
D
Value
Parameters
func:
(
value
:
Value
,
...
params
:
any
[]
)
=>
undefined
|
D
|
Promise
<
D
>
(
value
:
Value
,
...
params
:
any
[]
)
:
undefined
|
D
|
Promise
<
D
>
Parameters
value:
Value
Rest
...
params:
any
[]
Returns
undefined
|
D
|
Promise
<
D
>
time:
number
Returns
(
value
:
Value
,
...
params
:
any
[]
)
=>
undefined
|
D
|
Promise
<
undefined
|
D
>
(
value
:
Value
,
...
params
:
any
[]
)
:
undefined
|
D
|
Promise
<
undefined
|
D
>
Parameters
value:
Value
Rest
...
params:
any
[]
Returns
undefined
|
D
|
Promise
<
undefined
|
D
>
join
Names
join
Names
(
path
:
string
, newName
:
undefined
|
string
|
number
)
:
string
Parameters
path:
string
newName:
undefined
|
string
|
number
Returns
string
use
Final
Form
Field
use
Final
Form
Field
<
FieldValue
,
Props
>
(
baseName
:
string
, props
:
undefined
|
Props
, inputConfig
?:
InputHookConfig
)
:
UseFinalFormFieldValue
<
FieldValue
>
Type parameters
FieldValue
:
unknown
Props
:
UseFinalFormReceivedProps
<
FieldValue
,
Props
>
=
{}
Parameters
baseName:
string
props:
undefined
|
Props
inputConfig:
InputHookConfig
= {}
Returns
UseFinalFormFieldValue
<
FieldValue
>
use
Form
Auto
Submit
Decorator
use
Form
Auto
Submit
Decorator
<
Params
>
(
config
?:
UseFormAutoSubmitDecoratorConfig
)
:
Decorator
<
Params
,
Partial
<
Params
>
>
Type parameters
Params =
any
Parameters
config:
UseFormAutoSubmitDecoratorConfig
= {}
Returns
Decorator
<
Params
,
Partial
<
Params
>
>
use
Form
Keyboard
Submit
Decorator
use
Form
Keyboard
Submit
Decorator
<
Params
>
(
)
:
Decorator
<
Params
,
Partial
<
Params
>
>
Type parameters
Params =
any
Returns
Decorator
<
Params
,
Partial
<
Params
>
>
use
Formatted
Number
use
Formatted
Number
(
__namedParameters
?:
Options
)
:
readonly
[
string
,
(
input
?:
null
|
string
|
number
)
=>
void
]
Parameters
__namedParameters:
Options
= DEFAULT_OPTIONS
Returns
readonly
[
string
,
(
input
?:
null
|
string
|
number
)
=>
void
]
use
Prevent
Leave
Decorator
use
Prevent
Leave
Decorator
<
Params
>
(
history
?:
History
<
unknown
>
, options
?:
UsePreventLeaveDecoratorOptions
)
:
Decorator
<
Params
,
Partial
<
Params
>
>
Type parameters
Params =
any
Parameters
Optional
history:
History
<
unknown
>
Optional
options:
UsePreventLeaveDecoratorOptions
Returns
Decorator
<
Params
,
Partial
<
Params
>
>
use
Status
use
Status
(
)
:
{
form
:
FormContextProps
;
section
:
SectionContextProps
}
Returns
{
form
:
FormContextProps
;
section
:
SectionContextProps
}
form
:
FormContextProps
section
:
SectionContextProps
with
Final
Form
with
Final
Form
<
InputValue
,
AdditionalProps
,
Element
,
FieldValue
>
(
options
?:
WithFinalFormOptions
<
InputValue
,
FieldValue
,
any
>
)
:
<
Props
>
(
WrappedComponent
:
ComponentType
<
Props
>
)
=>
ForwardRefExoticComponent
<
PropsWithoutRef
<
ComponentProps
>
&
RefAttributes
<
Element
>
>
Type parameters
InputValue
:
unknown
AdditionalProps
:
object
=
{}
Element
:
HTMLElement
=
HTMLDivElement
FieldValue =
any
Parameters
options:
WithFinalFormOptions
<
InputValue
,
FieldValue
,
any
>
= {}
Returns
<
Props
>
(
WrappedComponent
:
ComponentType
<
Props
>
)
=>
ForwardRefExoticComponent
<
PropsWithoutRef
<
ComponentProps
>
&
RefAttributes
<
Element
>
>
<
Props
>
(
WrappedComponent
:
ComponentType
<
Props
>
)
:
ForwardRefExoticComponent
<
PropsWithoutRef
<
ComponentProps
>
&
RefAttributes
<
Element
>
>
Type parameters
Props
:
object
Parameters
WrappedComponent:
ComponentType
<
Props
>
Returns
ForwardRefExoticComponent
<
PropsWithoutRef
<
ComponentProps
>
&
RefAttributes
<
Element
>
>
Exports
Code
EditorJSONProps
Field
Transform
Use
Final
Form
Received
Props
Use
Prevent
Leave
Decorator
Options
With
Final
Form
Options
Field
Error
Behavior
Formatter
Callback
Parser
Callback
Validation
Callback
Code
EditorJSON
Field
Error
Form
Context
Form
Section
Form
Section
Watcher
Form
async
Debounce
join
Names
use
Final
Form
Field
use
Form
Auto
Submit
Decorator
use
Form
Keyboard
Submit
Decorator
use
Formatted
Number
use
Prevent
Leave
Decorator
use
Status
with
Final
Form
Describes when the error should be displayed