setActivePanel
Change the active panel.
Overview
Use this method to set a panel as active. It will show the panel but not steal or set the focus on it.
Method Signature
setActivePanel(panelType: MaestroPanelType): void;
Parameters
Parameter | Type | Description |
---|---|---|
panelType | MaestroPanelType | The Available PanelTypes |
Example Usage
import SDK, { MaestroPanelType } from "@maestro_io/maestro-web-sdk";
async function showBetsPanel() {
const event = SDK.getMaestroEventViewModel();
event.setActivePanel(MaestroPanelType.BETS);
}