Dashboard capabilities
Everything a Custom Metric widget can read from and do on the dashboard with @ubidots/react-html-canvas hooks, actions and widget events
A Custom Metric widget talks to the dashboard only through @ubidots/react-html-canvas. There are two directions: what the widget can GET (read) and what it can EMIT (drive). Each page below gives the exact shape and a snippet.
GET: read from the dashboard
What
How
Page
EMIT: drive the dashboard (useUbidotsActions())
What
How
Page
Widget-to-widget events (useWidgetEvents())
What
How
Page
Emit and subscribe
emitWidgetEvent(event, payload) / onWidgetEvent(event, cb) / onAnyWidgetEvent(cb)
Last updated
Was this helpful?