What Changed
We replaced the element property of the HTML/JS DashboardControl class with an element
method.
Reasons for Change
In v.20.2 we extended the API of the HTML JavaScript DashboardControl and implemented methods and properties that mimic DevExtreme widgets. For consistency, we replaced the element
property with a method.
Impact on Existing Apps
If you are using the element property in your dashboard application, find and replace it with the element
method call.
Old:
JavaScriptvar dashboardControl = new DashboardControl(document.createElement('div'), {});
var element = dashboardControl.element;
New:
JavaScriptvar dashboardControl = new DashboardControl(document.createElement('div'), {});
var element = dashboardControl.element();