panelOpenedThroughOverlay
Description
Observable field that indicates when a panel is opened through an overlay interaction. This is a special state representing the overlay → panel transition.
Type
boolean
Usage
m.lib.observeField("panelOpenedThroughOverlay", "onPanelOpenedThroughOverlay")
function onPanelOpenedThroughOverlay(event as Object)
wasOpened = event.getData()
if wasOpened then
print "Panel was opened by clicking an overlay"
end if
end function
Example
sub setupPanelObservers()
m.lib.observeField("panelOpenedThroughOverlay", "onPanelOpenedThroughOverlay")
end sub
function onPanelOpenedThroughOverlay(event as Object)
wasOpened = event.getData()
if wasOpened then
print "User clicked overlay and opened panel"
' Track this specific interaction
trackOverlayToPanelTransition()
' Optionally highlight the relevant content
' that was advertised in the overlay
end if
end function
Best Practices
- Use this to track overlay effectiveness
- Measure conversion from overlay views to panel opens
- Provide contextual experience when user opens panel via overlay