Control Panel
Register a panel schema to surface controls in the dashboard. Streamers can adjust your widget without editing code.SBCanvas.panel.register(schema)
Listening for Field Changes
Field updates arrive through the event bus:Handling Actions
Usepanel.onAction to respond to dashboard button clicks:
panel.offAction:
API Reference
| Method | Description |
|---|---|
panel.register(schema) | Register fields and actions for the dashboard |
panel.onAction(name, fn) | Handle a named action button press |
panel.offAction(name, fn?) | Remove action handler(s) |