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