Data AttributesConfiguration
Configuration Attributes
Configuration attributes modify how data-next-display elements format and compute their values. They are not standalone — they sit alongside a data-next-display attribute and tweak its output.
Quick Example
<!-- Currency, with cents hidden when zero -->
<span data-next-display="package.123.price"
data-format="currency"
data-hide-zero-cents="true">$0</span>
<!-- Convert cents to dollars -->
<span data-next-display="package.123.priceInCents"
data-divide-by="100"
data-format="currency">$0.00</span>Categories
| Category | Attributes | Purpose |
|---|---|---|
| Formatting | data-format, data-hide-zero-cents, data-hide-if-zero, data-hide-if-false | Control number/currency display and visibility |
| Math | data-multiply-by, data-divide-by, data-add, data-subtract | Compute new values from one or two display paths |