Github
Preparing search index...
The search index is not available
Lothlorien
Lothlorien
@playableprints/lothlorien-react
useFoldState
Function useFoldState
use
Fold
State
(
nodeKey
)
:
{
isOpen
:
boolean
;
toggle
:
(
(
)
=>
void
)
;
}
Parameters
nodeKey
:
string
the node key that you want to get the controls for.
Returns
{
isOpen
:
boolean
;
toggle
:
(
(
)
=>
void
)
;
}
is
Open
:
boolean
toggle
:
(
(
)
=>
void
)
(
)
:
void
Returns
void
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Lothlorien
@playableprints
lothlorien
lothlorien-react
the node key that you want to get the controls for.