SummaryChip
API reference › Debug Core › View › Grid › SummaryChip
Builds the metric chips and separators composing the summary header of a debug grid.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
render() static | Renders a summary chip with a strong value followed by its label. | SummaryChip |
separator() static | Renders the separator between summary chips. | SummaryChip |
Method details
Section titled “Method details”render()
Section titled “render() ”public static function render(string $value, string $label): UIAwesome\Html\Phrasing\SpanRenders a summary chip with a strong value followed by its label.
Parameters
| Parameter | Type | Description |
|---|---|---|
$value | string | Metric highlighted at the start of the chip. |
$label | string | Unit the metric is expressed in, including the space separating it from the value. |
Returns
UIAwesome\Html\Phrasing\Span: Rendered chip.
separator()
Section titled “separator() ”public static function separator(): UIAwesome\Html\Phrasing\SpanRenders the separator between summary chips.
Returns
UIAwesome\Html\Phrasing\Span: Rendered separator.