KPI Editorial minimal showcase — magazine-restraint grid with hairline rules.
Tracks _kpi-editorial-minimal.scss from @keenmate/pure-admin-core 2.7.1+.
Default layout is a cell-min-driven auto-fit grid; is_2_columns forces
2 columns; grid_layout="max_N" caps at N columns. Override the cell
minimum per instance via cell_min_width.
No charts, no pills — the design's identity is the thin numeral.
Summary
Functions
Renders one cell inside a kpi_editorial/1 grid.
Functions
Attributes
title_text(:string) - Defaults tonil.is_live(:boolean) - Defaults tofalse.live_text(:string) - Defaults to"LIVE".footer_text(:string) - Defaults tonil.grid_layout(:string) - Defaults tonil.Must be one ofnil,"2col","max_2","max_3","max_4","max_5", or"max_6".is_2_columns(:boolean) - Force 2-col grid (pa-kpi-edit__grid--2col) — shorthand forgrid_layout="2col". Defaults tofalse.cell_min_width(:string) - CSS length for--pa-kpi-edit-cell-min(default upstream14rem). Defaults tonil.class(:string) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)footer
Renders one cell inside a kpi_editorial/1 grid.
The target_text attr is wrapped in <em>tgt</em> automatically in the
meta row (matching upstream) — pass just the value (e.g. "90.0%"). Use
the :meta slot to render the meta row from scratch.
Attributes
id(:string) - Defaults tonil.label_text(:string) - Defaults tonil.value_text(:string) - Defaults tonil.unit_text(:string) - Defaults tonil.prefix_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_text(:string) - Target value; auto-rendered astgt <value>in the meta row. Defaults tonil.detail_title_text(:string) - Defaults tonil.previous_value_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
label- Override label cell — supports multi-line markup with<br>.valuemetadetail