apex_add_ribbon_stats
Add a horizontal ribbon of stat cards to an APEX page, using SQL queries to display key metrics with custom icons, colors, and suffixes.
Instructions
Add a horizontal ribbon of stat cards with icons and colors.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metrics | Yes | List of stat dicts (3–6): - "label": Stat label - "sql": SQL returning single scalar value - "icon": Font Awesome class - "color": Icon/value color - "suffix": Unit suffix | |
| page_id | Yes | Target page ID. | |
| bg_color | No | Ribbon background color (hex or CSS value). | #f8f9fa |
| sequence | No | Display order on page. | |
| custom_css | No | ||
| region_name | Yes | Internal region name. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |