# Status Card

# Preview:

Preview Preview Preview Preview

As it's name suggests, status card is used to display some kind of status on your dashboard. It can show 4 different kinds of status along with a short message.

# Type:


# Valid Data Types:

  • String

# Valid Statuses:

  • "success" - Green
  • "danger" - Red
  • "warning" - Yellow
  • "idle" - Grey

# Initializer:

  Status Card
  Valid Arguments: (ESPDash dashboard, Card Type, const char* name, const char* status (optional) )
Card card1(&dashboard, STATUS_CARD, "Test Status", "success");

# Updaters:

Status card updater allows you to set a message:


Or, message + status at the same time:

card1.update("Message", "success");