Link Card
This feature is only available in ESP-DASH Pro
A navigation component that enables user redirection through clickable URL links on the dashboard. Accepts and validates URL schemes for seamless page navigation and external linking.
Initializer
/*
Link Card
Valid Arguments: (ESPDash dashboard, Card Type, const char* name)
*/
Card linkcard(&dashboard, LINK_CARD, "Test Link");
Callback
💡
Link card doesn’t require any callback.
Updater
After initialization, you will have to provide the URL which has to be opened when user clicks on the card. You can do this by calling the update
function.
linkcard.update(const char* url);
Reference
This is a reference sketch showing positions for intializer and updater.
...
/* Link card initializer */
Card linkcard(&dashboard, LINK_CARD, "Test Link");
void setup() {
...
/* Link card updater - can be used anywhere (apart from global scope) */
linkcard.update("https://espdash.pro");
}
void loop() {
...
}