Skip to main content

showPanel

Opens or closes the panel drawer. Your channel sets it, and the SDK sets it too.

Type​

boolean

Example​

m.maestro.observeField("showPanel", "onMaestroShowPanel")
m.maestro.showPanel = true

sub onMaestroShowPanel(event as object)
if event.getData() = true
m.maestro.callFunc("setPanelFocus")
else
m.yourFocusTarget.setFocus(true)
end if
end sub

Notes​

  • The SDK opens the drawer on openToPanel, on an overlay engage, and on OK while the hidden panel has focus. In builds that enable the long press, holding OK in a panel closes it.
  • Do your layout and focus work in the showPanel observer, not only in your key handlers, so it runs whoever changed the field. When the SDK closes the drawer, the panel is still in the focus chain as your observer runs.
  • The drawer slides in and out; while it slides, setPanelFocus() holds focus inside the panel.
  • See Panel Integration.