# 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:

STATUS_CARD


# 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:

card1.update("message");

Or, message + status at the same time:

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