Skip to main content

setActivePanel

Change the active panel.

Overview

Use setActivePanel to programmatically switch the active panel. When the SDK's focus management is active, it also moves focus to the corresponding panel navigation button. When focus management is paused, the focus update is deferred until focus management resumes.

Method Signature

setActivePanel(panelType: MaestroPanelType): void;

Parameters

ParameterTypeDescription
panelTypeMaestroPanelTypeThe Available PanelTypes

Example Usage

import SDK, { MaestroPanelType } from "@maestro_io/maestro-web-sdk";

async function showBetsPanel() {
const event = SDK.getMaestroEventViewModel();
event.setActivePanel(MaestroPanelType.BETS);
}