A collapsible section header: chevron, all-caps title, underline and an optional
right-aligned hint. The owner toggles its section's content visibility from
onToggle(expanded) and re-flows the layout.
Constructor
new(title:String, width:Float, expanded:Bool = true, ?onToggle:Bool ‑> Void)
Parameters:
title | the header text (rendered upper-case) |
|---|---|
width | layout width |
expanded | the initial state |
onToggle | fired after a click flips the state |
Variables
Methods
localize(key:String, fallback:String):Void
Switches the title to a localized string.
Parameters:
key | the translation key |
|---|---|
fallback | the source-language text |