Skip to content

Top N Widget

Overview

Top N Widget includes its own configuration fields in the widget configuration flow.

Configuration Fields

  • Title
  • Alias
  • Devices
  • Selected Device Ids
  • Selected Metric
  • Min Value
  • Max Value
  • Warning Value
  • Critical Value
  • Decimals
  • Unit
  • Normal Color
  • Warning Color
  • Critical Color
  • Show Title
  • Show Rank
  • Show Device Name
  • Show Value
  • Show Bar
  • Show Timestamp
  • Compact
  • Mode
  • Item Count
  • Global Keys
  • Loading Devices
  • Loading Keys
  • Device Ids
  • Metric
  • Key
  • Telemetry Keys
  • Aggregation

Defaults

  • Title — ""
  • Alias — null
  • Selected Metric — config.telemetryKeys?.[0] || config.key || ""
  • Min Value — 0
  • Max Value — 100
  • Warning Value — config.warningValue === undefined || config.warningValue === null ? null : Number(config.warningValue
  • Critical Value — config.criticalValue === undefined || config.criticalValue === null ? null : Number(config.criticalValue
  • Decimals — 1
  • Unit — ""
  • Normal Color — "#22c55e"
  • Warning Color — "#f59e0b"
  • Critical Color — "#ef4444"
  • Show Title — true
  • Show Rank — true
  • Show Device Name — true
  • Show Value — true
  • Show Bar — true
  • Compact — true
  • Item Count — 5

Source

  • File — TopNWidgetConfig.tsx

Documentation for the Autoconnecto IoT platform