The built-in meter (spec/05 §6.4), "macaw.meter": one number against its range, in a
native <meter>, of kind :content, :pure.
- parameters:
label(text,"", the field's label from the schema when empty);reduce(Macaw.Builtin.Reading.reduces/0,"latest", bindable);digitsandformatas the stat's;min(0);max(required), aboveminor a fault at its name;low,highandoptimum(optional numbers, not bindable), each in the range andlownot abovehigh, or a fault at its name; - declarations: one slot,
rows, with rolesvalue(a:number) andt(the window field, optional, whichlatestanddeltaread by); reading load:glance; - order and budget: as the stat's;
- markup: the label as a heading, naming a
<meter>througharia-labelledby, and the value written by its field's measure beside it (Macaw.Builtin.Reading.writer/3), and the wordloworhighwhen it's past that threshold, so neither color nor length is the only cue.<meter>clamps its bar to the range; the text shows the true value. A slot with no readings shows an en dash and no bar, never zero; - stylesheet:
stylesheet/0, served atstylesheet_path/0, its content address.
Summary
Functions
The meter's one static stylesheet, every color a theme custom property with the default theme's value as its fallback. It loads and imports nothing.
The stylesheet's path, its content address (Macaw.Component.Stylesheet.path/1).
Functions
@spec stylesheet() :: String.t()
The meter's one static stylesheet, every color a theme custom property with the default theme's value as its fallback. It loads and imports nothing.
@spec stylesheet_path() :: String.t()
The stylesheet's path, its content address (Macaw.Component.Stylesheet.path/1).