here we have multiple section as i highlighted for that sections am using expand link so it will expand inside the layout, but those are reusable one but how can i control expand all bool for one section
currently when i click on expand all it is expanding for all the section but it should happen for which section we click
how can i do that
Discussion posts and replies are publicly visible
Assign the local variable inside foreach expression.Example Code:
a!localVariables( local!constantlist: { "TestLayout1", "TestLayout2", "TestLayout3" }, a!forEach( items: local!constantlist, expression: a!localVariables( local!expand_bool: true(), a!boxLayout( label: fv!item, contents: { a!sideBySideLayout( items: a!sideBySideItem( item: a!linkField( label: "expand all", labelPosition: "COLLAPSED", links: a!dynamicLink( label: if( local!expand_bool, "- Collapse All", "+ Expand All" ), value: not(local!expand_bool), saveInto: local!expand_bool ) ) ) ) } ) ) ))