Profectus / data/common / createCollapsibleModifierSections
Function: createCollapsibleModifierSections() ​
createCollapsibleModifierSections(
sectionsFunc
): [() =>Renderable
,Persistent
<Record
<number
,boolean
>>]
Takes an array of modifier "sections", and creates a JSXFunction that can render all those sections, and allow each section to be collapsed. Also returns a list of persistent refs that are used to control which sections are currently collapsed.
Parameters ​
sectionsFunc ​
() => Section
[]
A function that returns the sections to display.
Returns ​
[() => Renderable
, Persistent
<Record
<number
, boolean
>>]