Data display
Leader row
The compact row a rail is made of: position, avatar, a name with one line of why it is here, and its state.
import { EcoLeaderRow } from "vue-ecosphere"
Ranked
Only the leader’s numeral is coloured: a whole highlighted row in a list of ten says less.
1Meera RaghavanGrade 9-B · 98.4% attendance
2Kabir SharmaGrade 9-A · 97.9%
3Ananya IyerGrade 10-C · 97.1%
Unranked, with a state badge
Nilesh ShahAarav · absent · SMS + appQueued
Farah QureshiZoya · late · app onlyDelivered
Deepa MenonRohan · absent · SMSNo number
As a list of choices
Click a row: the selected one takes --brand-violet-tint, the system’s selection fill.
API
| Name | Type | Default | Description |
|---|---|---|---|
name | string | — | The row’s name. |
hint | string | — | Why this row is in this list. One line; it truncates. |
initials | string | — | Small avatar. The #avatar slot overrides it. |
rank | number | string | — | Position in a fixed 20px column. Leave it out when the list is not ranked. |
top | boolean | false | First place: the numeral takes the accent (lbr--top). |
status | EcoDataBadge | — | State badge at the end; or the #badge slot. |
selectable / selected | boolean | false | Render as a button (lbrl) in a rail that selects what the body shows; selected takes the violet tint. |
@click | (event) => void | — | Selectable rows only. |