I have made an accordion in Google App Maker and it's working fine.
But by defect, the first accordion row shows the detail part... I don't want to show the details unless we specify it (clicking on a "expand" button)
Is that possible? I have tried to do it via css and it doesn't work...
I also have tried this: (widget = expand button)
if (widget.parent.parent.children.Accordion1Detail.visible === false){
widget.parent.parent.children.Accordion1Detail.visible = true;
} else {
widget.parent.parent.children.Accordion1Detail.visible = false;
}
Refer this template. It has the example of Accordion Expanded/Not Expanded.
Overall you need to Bind the following
onAttach
event.Bind the
toggleAccordionRow
method ononClick()
event,