Skip to content
Elements / Data

compare-row

inside compare

One row of a comparison: an attribute and the field each option's value comes from.

Spec · edit me

No problems. The parser accepted every line.

Result · try itOpen in playground
Tweak the props
format
best

Props

"text"textThe attribute's name. Defaults to the field name.optional
fieldnameThe field of each option to show, e.g. field=price. true and false show as a check and a dash.required
formattext · number · moneytext, number (1,200.5) or money ($1,200.00).text
bestlow · highlow or high: mark the lowest or highest number in the row as the best. Leave out when neither is better.—
ifconditionShow only when this expression is true, e.g. if=done or if={count>0}. Every element takes it.—
tipstringA short explanation shown on hover, keyboard focus or a tap, e.g. tip="Orders not yet shipped": for a term or a number some people won't know, instead of more words on screen. It makes the element a Tab stop if it isn't one. Every element takes it.—

Only inside: compare

SayShape v0.1 is an early prototype under the MIT License. Status · GitHub