minuit

AccordionComponent

Titled blocks that fold, one open at a time or several.

Java

Inside a PanelComponent constructor. The same call draws in every family and chroma.

Java
AccordionComponent faq = add(new AccordionComponent(at(new Box("faq", 10, 10, 200, 120)), AccordionComponent.Mode.SINGLE));
faq.item("Where is my world?", "In the saves folder.");
AccordionComponent.Item video = faq.item("Video", "");
video.add(new SliderComponent(new Box("fov", 0, 0, 170, 12), 30, 110, 70, v -> { }), 6, 2);
faq.setOpen(0, true);

Variants

Closed

AccordionComponent, closed

Open

Click a title to open it.

AccordionComponent, open: Click a title to open it.