Alternera. Resources. Finance. UI. ConverterItem
(alternera_resources_finance v0.9.0)
Copy Markdown
View Source
The finance package's Unit converter, a Workbench item
(workbench_item :converter in the domain's alternera_ui): an amount
in one unit, shown in every other unit of the same base unit as the
reader types. It stays open beside whatever page the reader is on.
Opened on a unit's code (arg, from the units' By base unit view), it
starts from that unit. What the reader picks is kept with
UI.put_params/2, so the tab comes back as it was after a reload. The
units are read once, when the tab opens (load/2); Reload reads
them again.