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->()),
57 return Make<Impl>(std::move(label), std::move(child), show);
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...
arguments for transform from |ButtonOption|, |CheckboxOption|, |RadioboxOption|, |MenuEntryOption|,...