Margarita form reference documentation
Preparing search index...
@margarita-form/core
GeneralState
Class GeneralState<V>
Type Parameters
V
Index
Constructors
constructor
Properties
current
Value
initial
Value?
key
snapshot
Value
state
Methods
matches
set
Value
toJSON
Constructors
constructor
new
GeneralState
<
V
>
(
state
:
StateManager
<
MFC
>
,
key
:
keyof
MargaritaFormState
,
initialValue
?:
V
,
snapshotValue
?:
V
,
)
:
GeneralState
<
V
>
Type Parameters
V
Parameters
state
:
StateManager
<
MFC
>
key
:
keyof
MargaritaFormState
Optional
initialValue
:
V
snapshotValue
:
V
= ...
Returns
GeneralState
<
V
>
Properties
current
Value
currentValue
:
V
= ...
Optional
initial
Value
initialValue
?:
V
key
key
:
keyof
MargaritaFormState
snapshot
Value
snapshotValue
:
V
= ...
state
state
:
StateManager
<
MFC
>
Methods
matches
matches
(
key
:
keyof
MargaritaFormState
)
:
boolean
Parameters
key
:
keyof
MargaritaFormState
Returns
boolean
set
Value
setValue
(
key
:
keyof
MargaritaFormState
,
value
:
V
)
:
void
Parameters
key
:
keyof
MargaritaFormState
value
:
V
Returns
void
toJSON
toJSON
()
:
{
[
key
:
string
]:
V
}
Returns
{
[
key
:
string
]:
V
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
current
Value
initial
Value
key
snapshot
Value
state
Methods
matches
set
Value
toJSON
Margarita form reference documentation
Loading...