MDK Logo
ReferenceUIHooks

Card Hooks

Card component state and interaction hooks

Hooks for card component state management.

Package

@tetherto/mdk-react-devkit

Hooks

useCabinetDetail

Reads the selected LV cabinet from devicesStore, re-fetches its family of powermeters and temperature sensors by root (useCabinetDevices) at the realtime cadence, and shapes them into the r…

(onNavigate?: (path: string) => void) => UseCabinetDetailResult

useDeviceAlarms

Shapes the active alarms of the selected devices into timeline items for the Explorer detail panel, mirroring MOS's getContainerFormatedAlertsgetAlertTimelineItems chain: getAlarms reads eac…

(devices?: Device[], onNavigate?: (path: string) => void) => UseDeviceAlarmsResult

useExplorerThingDetail

Explorer detail hook: fetches one thing by id (useThingDetail) and shapes it into display-ready rows for the Explorer detail panel. Reads the same snapshot fields the container table columns…

(id: string | undefined, options?: UseThingDetailOptions) => UseExplorerThingDetailResult

On this page