Open this page in the API Guide

DashboardCanvas.subscribeViewModeChanged Method

Fires when the viewmode if changed.