Skip to main content

openToPanel

Description

Client action field to open the panel to a specific tab by name.

Type

string

Usage

' Open to Key Plays panel
m.lib.openToPanel = "keyplays"

' Open to Fantasy panel
m.lib.openToPanel = "fantasy"

' Open to Stats panel
m.lib.openToPanel = "stats"

Supported Panel Names

Common panel names include:

  • "keyplays" - Key Plays panel
  • "fantasy" - Fantasy panel
  • "stats" - Stats panel
  • "bet" - Betting panel
note

Available panels depend on your Maestro configuration. Check your Maestro dashboard for configured panels.

Example

' Open to a specific panel based on user action
sub onShowKeyPlays()
m.lib.showPanel = true
m.lib.openToPanel = "keyPlaysPanel"
m.lib.callFunc("setPanelFocus")
end sub

' Navigate to Fantasy panel from overlay click
sub onFantasyOverlayClicked()
m.lib.showPanel = true
m.lib.openToPanel = "fantasyPanel"
m.lib.callFunc("setPanelFocus")
end sub

' Switch panels programmatically
sub switchToPanel(panelName as String)
if m.lib.showPanel = false then
m.lib.showPanel = true
end if

m.lib.openToPanel = panelName
m.lib.callFunc("setPanelFocus")
end sub

Best Practices

  • Ensure the panel is shown before or when setting this field
  • Verify the panel name is configured in your Maestro dashboard
  • Combine with showPanel = true for better UX
  • Transfer focus to the panel after opening