34 class Impl :
public ComponentBase {
38 opt.transform = [](EntryState s) {
39 auto prefix = text(s.state ?
"▼ " :
"▶ ");
40 auto t = text(s.label);
47 return hbox({prefix, t});
49 Add(Container::Vertical({
50 Checkbox(std::move(label), show_.operator->(), opt),
51 Maybe(std::move(child), show_.operator->()),
Component Collapsible(ConstStringRef label, Component child, Ref< bool > show=false)
A collapsible component. It displays a checkbox with an arrow. Once activated, the child is displayed...