KPI Numeric strip showcase — tabular spreadsheet-style table card.
Tracks _kpi-numeric-strip.scss from @keenmate/pure-admin-core 2.7.1+.
Default 5-column layout (metric · now · prev · Δ% · target). Drop columns
via no_previous_value / no_delta_percent / no_target_bar — toggles
compose, so the visible column count ranges from 2 (all three optional
columns dropped) to 5 (none dropped). The header row is auto-generated
from the visible columns; override individual labels via header_labels,
suppress via no_header, or fully replace via the :head slot.
Wide-only by design — no responsive collapse. Narrow placements should
use kpi_gauge_list/1 instead.
Summary
Functions
Attributes
title_text(:string) - Defaults tonil.is_live(:boolean) - Defaults tofalse.live_text(:string) - Defaults to"LIVE".footer_text(:string) - Defaults tonil.no_previous_value(:boolean) - Drop the prev column (pa-kpi-strip--no-prev). Defaults tofalse.no_delta_percent(:boolean) - Drop the Δ% column (pa-kpi-strip--no-delta). Defaults tofalse.no_target_bar(:boolean) - Drop the target-bar column (pa-kpi-strip--no-target). Defaults tofalse.no_header(:boolean) - Suppress the auto-generated header row. Defaults tofalse.header_labels(:map) - Per-column header overrides — keys are:metric|:now|:previous_value|:delta_percent|:target_bar. Defaults to%{}.class(:string) - Defaults tonil.- Global attributes are accepted.
Slots
head- Fully replace the auto-generated header row with custom markup.inner_block(required) - Row content —kpi_strip_row/1instances.footer
Renders one data row inside a kpi_strip/1.
The row is the hover host for the detail popover. Set detail_title_text
plus any combination of previous_value_text / delta_absolute_text /
target_text to auto-build the popover body. target_bar_percent drives
the bar fill (visually capped at 100%); target_percent_text is the
label below the bar (may exceed 100, e.g. "108%").
Attributes
id(:string) - Defaults tonil.metric_text(:string) - Defaults tonil.value_text(:string) - Defaults tonil.unit_text(:string) - Defaults tonil.prefix_text(:string) - Defaults tonil.previous_value_text(:string) - Defaults tonil.delta_text(:string) - Defaults tonil.delta_variant(:string) - Defaults tonil.Must be one ofnil,"positive","negative","neutral","up_strong", or"down_strong".target_bar_percent(:integer) - Bar fill width as a percentage (visually capped at 100). Defaults tonil.target_percent_text(:string) - Label below the target bar — may exceed 100% (e.g. "108%"). Defaults tonil.detail_title_text(:string) - Defaults tonil.target_text(:string) - Defaults tonil.delta_absolute_text(:string) - Defaults tonil.delta_absolute_sentiment(:atom) - Defaults tonil.Must be one ofnil,:pos,:neg, or:warn.detail_rows(:list) - Defaults tonil.class(:string) - Defaults tonil.- Global attributes are accepted.
Slots
metricnowprevious_valuedeltatargetdetail