I would like to detect whether full screen is active and disable a function action on my popup. Would there be a property for this in the view?
You could watch the `state` property on FullscreenViewModel to detect if Fullscreen widget is active. Please see code below:
watchUtils.watch(fullscreenWidget.viewModel, "state", (value)=>{ if(value === "active"){ console.log("Entered Fullscreen mode"); } })
The states are
active | ready | feature-unsupported | disabled
What are all of the states of FullScreen? I'm looking for a "click" state because the watch on "state" happens when the browser is already going into fullstate mode.
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.