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