Skip to main content

selectPanelIfEnabled

Selects a tab if the page has it.

Overview​

Call selectPanelIfEnabled() on the session to mark the panel visible and select the tab id names, when the page config enables that panel. Otherwise the call does nothing, unlike didShowPanel(), which falls back to the first tab. Overlays that target a panel use it.

Syntax​

fun selectPanelIfEnabled(id: PanelTypeId)

Parameters​

ParameterTypeDescription
idPanelTypeIdThe tab to select, by panel type or config panel id

Example​

sdk.selectPanelIfEnabled(PanelTypeId("helloWorld"))