A single collapsible section: a clickable header with a rotating chevron over a body you fill
via content. Unlike UIAccordion (which only toggles an external body's visibility), the
expander owns its body and its own height grows/shrinks with the state, so h reflects
headerHeight plus contentHeight while open. onToggle(open) lets a host relayout.
Constructor
new(title:String, width:Float, expanded:Bool = true, ?onToggle:Bool ‑> Void)
Parameters:
title | the header text |
|---|---|
width | layout width |
expanded | start open (default open) |
onToggle | fired on open/close |
Variables
Methods
localize(key:String, fallback:String):Void
Switches the header to a localized string.
Parameters:
key | the translation key |
|---|---|
fallback | the source-language text |