Card | DeviceOrbit
DeviceOrbit#
Description#
Radial view with a device or network at the center and its data (MAC, battery, signal, IP) as satellites around it, connected by SVG lines. If the container is too narrow, it stacks the satellites below the circle in column mode. Changing orbitKey collapses satellites toward the center and expands the new ones in 200 ms. pulsing makes the halo beat while searching for devices.
Props#
label(string) — Group name, already translated, used asaria-label. Required.center(OrbitCenter | null) — The device or network at the center:icon,iconType,title,subtitle.nullshows the empty circle.satellites(OrbitSatellite[]) — Data around the center. Each satellite:id(unique),label,value(empty ornullis not rendered, unless action),icon,action(it is a button and emitsselect),tone('accent'paints the value in primary),disabled.emptyLabel(string) — Text for the empty circle. Default:''.emptyIcon(string) — Icon for the empty circle. Default:''.pulsing(boolean) — The halo beats: searching in progress. Default:false.orbitKey(string | number) — Changing it triggers the satellite transition (collapse and expand). Default:''.layout('auto'|'stacked') —autodistributes if it fits, stacks if not;stackedalways stacks. Default:'auto'.
Emits#
select— Anactionsatellite was selected; the argument is the satelliteid.
Usage#
| |
Notes#
- Without a center (
centerisnull), the empty circle withemptyLabelis shown, normally with a single action. - A satellite without a datum is not rendered, unless it is an action.
- Satellites are an ordered, keyboard-accessible list; the radial position is decorative.