ViewReady: function (sender, args);
sender. Event source.
args. Event information.
The ViewReady event occurs when parameter view is ready to be viewed.
Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component). Handle the ViewReady event:
// Get an object of the EaxParameterView class var paramsPanel = expressBox.getPropertyBarView().getDataSourceParamsPanel(); // Get parameter view var parameterView = paramsPanel._Items[0]; // Handle the ViewReady event parameterView.ViewReady.add( function() { // Determine whether parameter view must be recreated var reInit = parameterView.getNeedInstanceReinit(); parameterView.refreshAll(reInit); } );
After executing the example each time the ViewReady event occurs, all elements of respective parameter are refreshed.
See also: